package
0.2.0
Repository: https://github.com/rs/rest-layer.git
Documentation: pkg.go.dev

# Functions

MustParsePredicate parses a predicate expression and panics in case of error.
MustParseProjection parses a projection expression and panics in case of error.
MustParseSort parses a sort expression and panics in case of error.
New creates a query from a projection, predicate and sort queries using their respective DSL notations.
Page creates a Window using pagination.
ParsePredicate parses a predicate.
ParseProjection recursively parses a projection expression.
ParseSort parses a sort expression.

# Structs

ElemMatch matches object values specified in an array.
Equal matches all values that are equal to a specified value.
Exist matches all values which are present, even if nil.
GreaterOrEqual matches values that are greater than or equal to a specified value.
GreaterThan matches values that are greater than a specified value.
In matches any of the values specified in an array.
LowerOrEqual matches values that are less than or equal to a specified value.
LowerThan matches values that are less than a specified value.
NotEqual matches all values that are not equal to a specified value.
NotExist matches all values which are absent.
NotIn matches none of the values specified in an array.
ProjectionField describes how a field should be represented in the returned payload.
Query defines the criteria of a query to be applied on a resource validated by a schema.Schema.
Regex matches values that match to a specified regular expression.
SortField TODO.
Window defines a view on the resulting payload.

# Interfaces

Expression is a query or query component that can be matched against a payload.
Resource represents type that can be queried by Projection.Eval.
Value represents any kind of value to use in query.

# Type aliases

And joins query clauses with a logical AND, returns all documents that match the conditions of both clauses.
Or joins query clauses with a logical OR, returns all documents that match the conditions of either clause.
Predicate defines an expression against a schema to perform a match on schema's data.
Projection defines the list of fields that should be included into the returned payload, and how they should be represented.
Sort TODO.