Skip to content

Commit

Permalink
Fixing test schema
Browse files Browse the repository at this point in the history
  • Loading branch information
psguazz committed Mar 8, 2024
1 parent 598635d commit bb39391
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/test_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bb39391

Please sign in to comment.