QueryBuilder class

Builds instances of Query.

The query algorithm has the following phases:

  • filter - "Find matching documents"
  • sorter - "Sort documents"
  • schema - "Use a specific subgraph"
  • skip - "Skip N documents"
  • skip - "Take N documents"

Constructors

QueryBuilder()

Properties

filter Filter
Describes which graphs should be selected. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
schema Schema
Describes the subgraph to select. [...]
read / write
skip int
The number of skipped graphs after filtering and sorting. [...]
read / write
sorter Sorter
Describes how graphs should be sorted. [...]
read / write
take int
The number of taken graphs after filtering, sorting, and skipping. [...]
read / write

Methods

addFilter(Filter filter) → void
Adds a filter the query. It's merged to the current query with AndFilter (logical AND).
addSorter(Sorter sorter) → void
Adds a sorter in the query. It will have a lower priority than existing sorters.
build() Query
Builds an immutable instance of Query.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override