Operators & keywords for queries
Filter
where
: Filters the query results based on the specified conditions
String Operators
contains
: Returns true if the string contains a specified substring, ignoring casestartsWith
: Returns true if the string starts with a specified substring, ignoring caseendsWith
: Returns true if the string ends with a specified substring, ignoring casencontains
: Returns true if the string does not contain a specified substring, ignoring casenstartsWith
: Returns true if the string does not start with a specified substring, ignoring casenendsWith
: Returns true if the string does not end with a specified substring, ignoring casein
: Innin
: Not in
Comparable Operators
eq
: Equalsneq
: Not equalsin
: Innin
: Not ingt
: Greater thanlt
: Less thangte
: Greater than or equallte
: Less than or equal
Logical Operators
and
: Returns true if both conditions are trueor
: Returns true if either condition is true
Collection Operators
all
: Returns true if the condition is true for all items in the collectionnone
: Returns true if the condition is false for all items in the collectionsome
: Returns true if the condition is true for some items in the collection
Sorting
orderBy
: Specifies the field(s) to sort the results byasc
: Sorts the results in ascending orderdesc
: Sorts the results in descending order
Pagination
first
: Specifies the maximum number of first items to returnlast
: Specifies the maximum number of last items to returnafter
: Specifies the end cursor of the previous page of itemsbefore
: Specifies the start cursor of the next page of itemscursor
: A unique identifier for the current item in the query resultpageInfo
startCursor
: The cursor of the first item in the result setendCursor
: The cursor of the last item in the result sethasNextPage
: Indicates whether there is a next page of itemshasPreviousPage
: Indicates whether there is a previous page of items
Hot Chocolate documentation
Below are links to the pages describing the Hot Chocolate filters :
In the following links consult the information of the SDL
block and not the C#
block.