1. Add input type to receive user details 2. Add resolver to create user 3. Configure mutation in root type 4. Aggregate mutations in schema
14 lines
204 B
Elixir
14 lines
204 B
Elixir
defmodule WabanexWeb.Schema do
|
|
use Absinthe.Schema
|
|
|
|
import_types WabanexWeb.Schema.Types.Root
|
|
|
|
query do
|
|
import_fields :root_query
|
|
end
|
|
|
|
mutation do
|
|
import_fields :root_mutation
|
|
end
|
|
end
|