Skip to content

Commit e2ee793

Browse files
committed
docs: add sample with mongodb
Signed-off-by: Otavio Santana <[email protected]>
1 parent 7ca4add commit e2ee793

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,12 @@ The ```MongoDBTemplate``` interface is a specialization of the ```DocumentTempla
990990

991991
[source,java]
992992
----
993+
@Inject
994+
MongoDBTemplate template;
995+
...
996+
997+
Bson filter = eq("name", "Poliana");
998+
Stream<Person> stream = template.select("Person", filter);
993999
----
9941000

9951001
== OrientDB

0 commit comments

Comments
 (0)