Package manifold.graphql.rt.api.request
Interface GqlRequestBody<V>
-
- Type Parameters:
V- the query type as defined in the GraphQL query schema
- All Superinterfaces:
manifold.ext.rt.api.IBindingsBacked,manifold.json.rt.api.IJsonBindingsBacked,Serializable
public interface GqlRequestBody<V> extends manifold.json.rt.api.IJsonBindingsBackedWraps the GraphQL request body consisting of both the query and variables.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classGqlRequestBody.ProxyFactory
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static manifold.rt.api.Bindings_maybeRemoveNulls(manifold.rt.api.Bindings variables, Set<Integer> visited)static <V> GqlRequestBody<V>create(String query, V variables)default StringgetQuery()The static query defined in the GraphQL query schema.default VgetVariables()The query variable constraints.static manifold.rt.api.BindingsmaybeRemoveNulls(manifold.rt.api.Bindings variables)Recursively remove entries with `null` values since the absence of a field and a field with a `null` value are treated equally.static voidremoveNulls(List list, Set<Integer> visited)
-
-
-
Method Detail
-
create
static <V> GqlRequestBody<V> create(String query, V variables)
-
maybeRemoveNulls
static manifold.rt.api.Bindings maybeRemoveNulls(manifold.rt.api.Bindings variables)
Recursively remove entries with `null` values since the absence of a field and a field with a `null` value are treated equally. The reason for removing them is mostly due to tooling that does not handle null well (Nasdaq), however it may also help with large, sparsely populated payloads.
-
_maybeRemoveNulls
static manifold.rt.api.Bindings _maybeRemoveNulls(manifold.rt.api.Bindings variables, Set<Integer> visited)
-
getQuery
default String getQuery()
The static query defined in the GraphQL query schema.
-
getVariables
default V getVariables()
The query variable constraints.
-
-