diff options
| author | mo khan <mo.m.khan@shopify.com> | 2020-12-23 16:44:27 -0700 |
|---|---|---|
| committer | mo khan <mo.m.khan@shopify.com> | 2020-12-23 16:44:27 -0700 |
| commit | c9e2cb2accb9a1a484b0d709fe5eb5d537486e21 (patch) | |
| tree | 2ea4eac78b1f1e81977dd9affca6247e212f404b /lib/types/query.rb | |
| parent | ae339b9477eea323caaf67371c5abd92723633cd (diff) | |
test: start to test schema
Diffstat (limited to 'lib/types/query.rb')
| -rw-r--r-- | lib/types/query.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/types/query.rb b/lib/types/query.rb index 253f5d7..cda6b50 100644 --- a/lib/types/query.rb +++ b/lib/types/query.rb @@ -1,5 +1,10 @@ module Types + class User < GraphQL::Schema::Object + field :username, String, null: false + end + class Query < GraphQL::Schema::Object + #field :me, User, null: false field :me, String, null: false field :cakes, [Cake], null: false |
