summaryrefslogtreecommitdiff
path: root/lib/types/query.rb
diff options
context:
space:
mode:
authormo khan <mo.m.khan@shopify.com>2020-12-23 15:05:00 -0700
committermo khan <mo.m.khan@shopify.com>2020-12-23 15:05:00 -0700
commit35f62884ceee77fa28bec0533e0f3bb15336e941 (patch)
tree84787779650e0437107fa41052cef1eb503ae4e3 /lib/types/query.rb
parentb8670e1826f05b38e6b2405d0ca916573de43284 (diff)
chore: move types to separate files
Diffstat (limited to 'lib/types/query.rb')
-rw-r--r--lib/types/query.rb10
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