-
Notifications
You must be signed in to change notification settings - Fork 82
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
feat: Support Interfaces #27
Conversation
@@ -29,7 +29,7 @@ def to_graphql | |||
end | |||
|
|||
possible_entities = orig_defn.types.values.select do |type| | |||
!type.introspection? && !type.default_scalar? && | |||
!type.introspection? && !type.default_scalar? && type.is_a?(GraphQL::ObjectType) && |
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.
Sorry for the delay. I've been out on parental leave for the last few weeks. I'll take a look at this next week. |
Thank you for the update 🙂 |
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.
Thanks for implementing this!
# [0.5.0](v0.4.2...v0.5.0) (2019-10-22) ### Features * Support Interfaces ([#27](#27)) ([33d0097](33d0097))
🎉 This PR is included in version 0.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Following the spec defined in: https://www.apollographql.com/docs/apollo-server/federation/federation-spec/
Notes:
directive @extends on OBJECT | INTERFACE
directive @key(fields: _FieldSet!) on OBJECT | INTERFACE
-> Introduce a new
ApolloFederation::Interface
module that can be included in base interface modules, using the API outlined in https://graphql-ruby.org/type_definitions/interfaces#definition-methodsunion _Entity
Unions cannot reference interface types, so the resolver excludes non-object types to generate this field.