diff --git a/lib/test_schema.rb b/lib/test_schema.rb index 7a0ddb5..16a5257 100644 --- a/lib/test_schema.rb +++ b/lib/test_schema.rb @@ -9,9 +9,16 @@ def self.coerce_result(value, ctx) end end + class TagType < GraphQL::Schema::Object + field :tag, String, null: true + field :content, String, null: true + field :attributes, String, null: true + end + class PersonType < GraphQL::Schema::Object field :id, String, null: true field :name, String, null: true + field :_seo_meta_tags, [TagType], null: false end class MetaType < GraphQL::Schema::Object @@ -42,7 +49,8 @@ def _all_under_tests_meta def all_under_tests OpenStruct.new( id: "test", - name: "Stan" + name: "Stan", + _seo_meta_tags: [] ) end end