Joao P Dubas 96a3e2e9f0 [day-03] add mutation to create user
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
2021-06-24 00:25:47 +00:00

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