public class FieldFilterInputTypeCache extends Object
input BooksFilterInput {
author: StringFilterInput
title: StringFilterInput
}
These are used when receiving filtering criteria, for example in a 'books' query:
query {
books(filter: { author: { eq: "Cormac McCarthy" } }) { ... }
}
Note that these filters are also used in "DELETE IF" and "UPDATE IF" conditions. Some operators
only apply in one context, for example "notEq" is allowed in conditional updates, but not
selects. We currently have a single filter type with all the operators, it's up to the user to a
valid one otherwise the query will fail. We could possibly refine this by creating multiple
filter types depending on the context (whether the column is a collection, is a PK, has an SAI
index defined for it, etc).| Modifier and Type | Field and Description |
|---|---|
protected NameMapping |
nameMapping |
| Modifier and Type | Method and Description |
|---|---|
protected graphql.schema.GraphQLInputType |
compute(Column.ColumnType columnType)
Computes a result on a cache miss.
|
protected graphql.schema.GraphQLScalarType |
getScalar(Column.Type type) |
protected final NameMapping nameMapping
protected graphql.schema.GraphQLInputType compute(Column.ColumnType columnType)
get(io.stargate.db.schema.Column.ColumnType) to obtain them,
in case they were already cached.protected graphql.schema.GraphQLScalarType getScalar(Column.Type type)
Copyright © 2020. All rights reserved.