graphqexl v0.1.0-alpha-rc.24 Graphqexl.Query

GraphQL query, comprised of one or more Graphqexl.Query.Operation.t/0s.

Built by calling parse/1 with either a Graphqexl.Query.gql/0 string (see Graphqexl.Schema.Dsl) or Graphqexl.Query.json/0.

Link to this section Summary

Link to this section Types

Link to this type

gql()

gql() :: String.t()
Link to this type

json()

json() :: %{required(String.t()) => term()}
Link to this type

resolver_fun()

resolver_fun() :: (Map.t(), Map.t(), Map.t() -> term())
Link to this type

t()

t() :: %Graphqexl.Query{operations: [Graphqexl.Query.Operation.t()]}
Link to this type

tokenizing_map()

tokenizing_map() :: %{
  stack: list(),
  current: Graphqexl.Query.Operation.t(),
  operations: [Graphqexl.Query.Operation.t()]
}

Link to this section Functions

Link to this function

execute(query, schema)

(since 0.1.0)

Execute the given Graphqexl.Query.t/0

Returns: Graphqexl.Query.ResultSet.t/0

Link to this function

parse(gql)

(since 0.1.0)
parse(gql()) :: t()
parse(json()) :: t()

Parse the given Graphqexl.Query.json/0 object into a Graphqexl.Query.t/0

Returns: Graphqexl.Query.t/0