Examples: Querying JSON Documents

This section provides query examples using the OJAI API. The examples include querying by document ID, retrieving all documents in a store, selecting individual fields, specifying query conditions, and ordering your query result. For reference, the examples also include the equivalent MapR-DB Shell (dbshell) commands.

If you hover over the right hand side of all code examples, you can use the icon to copy and paste the code.

You can also download the Java code examples from github at https://github.com/mapr-demos/ojai-2-examples/tree/master/src/main/java/com/mapr/ojai/examples.