GraphQL.Execution.Executor

Execute a GraphQL query against a given schema / datastore.

# iex> GraphQL.execute schema, "{ hello }"
# {:ok, %{hello: "world"}}

Summary

Functions

execute(schema, document, root_value \\ %{}, variable_values \\ %{}, operation_name \\ nil)

Execute a query against a schema.

# iex> GraphQL.execute(schema, "{ hello }")
# {:ok, %{hello: world}}