Skip to content

Querying

Paul Stovell edited this page Apr 23, 2020 · 2 revisions

Nevermore provides a variety of ways to query data. The most common form is querying documents, but it's also possible to query other types of objects. This page attempts to explain the different ways to query and provides examples of when you would use them.

Querying documents

Document queries are the most common form of query you'll write. There's essentially two ways to get documents: Load and Query:

var customer = transaction.Load<Customer>("Customers-15");  // Get a single customer
var customers = transaction.Query<Customer>().ToList();     // Gets all customers

Load

Where

Arrays & IN

Getting results

Stream

Querying arbitrary classes

Querying tuples

Querying primitives

Async