-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.8] custom introspection #1170
Conversation
spec/graphql/schema/object_spec.rb
Outdated
@@ -29,6 +29,8 @@ | |||
name_field = new_object_class.fields.find { |f| f.name == "name" } | |||
assert_equal "The new description", name_field.description | |||
end | |||
|
|||
it "inherits name and description" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is empty 🙊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added, thanks for the reminder!
A beast of a PR to add custom introspection to GraphQL-Ruby
__type(name:)
&__schema
)__typename
)I've added docs here.
Fixes #793
Fixes #733
Also, this includes some other interesting stuff:
GraphQL::Schema::LateBoundType
: for referencing types by name, this could be nice to make public somehowextras:
API for sneaking:irep_node
and:ast_node
into method resolve. Should I document that, or just let it disappear and see if anyone needs it?