Skip to content

Instantly share code, notes, and snippets.

@khannedy
Created October 27, 2017 12:08
Show Gist options
  • Save khannedy/3d7007bb5dc96c72d0c5ca4c65564d28 to your computer and use it in GitHub Desktop.
Save khannedy/3d7007bb5dc96c72d0c5ca4c65564d28 to your computer and use it in GitHub Desktop.
package com.idspring.crudreactive.repository;
import com.idspring.crudreactive.entity.Product;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import reactor.core.publisher.Flux;
/**
* @author Eko Kurniawan Khannedy
* @since 24/10/17
*/
public interface ProductRepository extends ReactiveMongoRepository<Product, String> {
Flux<Product> findAllByCategoryId(String categoryId);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment