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.

Will be ignored when null is passed.

gte
Matches records where the field value is greater than or equal to (>=) the provided value.

Will be ignored when null is passed.

lt
Matches records where the field value is less than (<) the provided value.

Will be ignored when null is passed.

lte
Matches records where the field value is less than or equal to (<=) the provided value.

Will be ignored when null is passed.

query FindArtistsFormedIn90s {
  artists(filter: {
    bio: {yearFormed: {gte: 1990, lt: 2000}}
  }) {
    nodes {
      name
      bio {
        yearFormed
      }
      albums {
        name
      }
    }
  }
}