GraphQL

The main GraphQL module.

The GraphQL module provides a GraphQL implementation for Elixir.

Execute a query

Execute a GraphQL query against a given schema / datastore.

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

Summary

Functions

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

Execute a query against a schema.

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