diff options
Diffstat (limited to 'lib/types/query.rb')
| -rw-r--r-- | lib/types/query.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/types/query.rb b/lib/types/query.rb new file mode 100644 index 0000000..253f5d7 --- /dev/null +++ b/lib/types/query.rb @@ -0,0 +1,10 @@ +module Types + class Query < GraphQL::Schema::Object + field :me, String, null: false + field :cakes, [Cake], null: false + + def me + 'mo' + end + end +end |
