add createUser mutation

This commit is contained in:
João Geonizeli
2021-08-04 23:06:28 -03:00
parent 30b290514f
commit 964ae85d46
12 changed files with 121 additions and 7 deletions

View File

@@ -1,11 +1,6 @@
# frozen_string_literal: true
module Types
class MutationType < Types::BaseObject
# TODO: remove me
field :test_field, String, null: false,
description: "An example field added by the generator"
def test_field
"Hello World"
end
field :create_user, mutation: Mutations::CreateUser
end
end