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.IJsonBindingsBacked
    Wraps the GraphQL request body consisting of both the query and variables.
    • 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 String getQuery()
      The static query defined in the GraphQL query schema.
      default V getVariables()
      The query variable constraints.
      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.
      static void removeNulls​(List list, Set<Integer> visited)  
      • Methods inherited from interface manifold.ext.rt.api.IBindingsBacked

        display
      • Methods inherited from interface manifold.json.rt.api.IJsonBindingsBacked

        getBindings, write, writeReplace
    • Method Detail

      • 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)
      • removeNulls

        static void removeNulls​(List list,
                                Set<Integer> visited)
      • getQuery

        default String getQuery()
        The static query defined in the GraphQL query schema.
      • getVariables

        default V getVariables()
        The query variable constraints.