ProjectionsSchemaField
@index
Use the @index directive to make a field filterable and sortable.
This directive exists on object level as well: @index
The GraphQL API will add this field to the filter, order and wait condition parameters.
Example
type User @upsertOn(...) {
name: String! @index
}In this case, the name field will be available for filtering and sorting in the GraphQL API.