ElasticGraph Query API: Comparison Filtering
ElasticGraph offers a standard set of comparison filter predicates:
gt
- Matches records where the field value is greater than (>) the provided value.
When
null
is passed, matches all documents. gte
- Matches records where the field value is greater than or equal to (>=) the provided value.
When
null
is passed, matches all documents. lt
- Matches records where the field value is less than (<) the provided value.
When
null
is passed, matches all documents. lte
- Matches records where the field value is less than or equal to (<=) the provided value.
When
null
is passed, matches all documents.
query FindArtistsFormedIn90s {
artists(filter: {
bio: {yearFormed: {gte: 1990, lt: 2000}}
}) {
nodes {
name
bio {
yearFormed
}
albums {
name
}
}
}
}