11 lines
537 B
Java
11 lines
537 B
Java
package pl.edu.amu.wmi.bookapi.repositories;
|
|
|
|
import org.springframework.data.mongodb.repository.MongoRepository;
|
|
import pl.edu.amu.wmi.bookapi.models.ThreadDocument;
|
|
|
|
public interface ThreadRepository extends MongoRepository<ThreadDocument, String>, ThreadRepositoryCustom {
|
|
// @Query("'participantsIds': { $in: [?0, ?1]}")
|
|
// List<ThreadDocument> findByParticipants(String participantId1, String participantId2);
|
|
// @Query("{'participantsIds': {$in: [?0]}}")
|
|
// List<ThreadDocument> findByParticipant(String participant);
|
|
} |