[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
This commit is contained in:
Joao P Dubas
2021-06-24 00:25:47 +00:00
parent a54d29ee61
commit 96a3e2e9f0
4 changed files with 20 additions and 0 deletions

View File

@@ -6,4 +6,8 @@ defmodule WabanexWeb.Schema do
query do
import_fields :root_query
end
mutation do
import_fields :root_mutation
end
end