-
-
Notifications
You must be signed in to change notification settings - Fork 821
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
Add inheritResolversFromInterfaces option - mergeSchemas #812
Add inheritResolversFromInterfaces option - mergeSchemas #812
Conversation
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 looks great to me =)
@@ -10,6 +10,7 @@ import { | |||
RenameRootFields, | |||
} from '../transforms'; | |||
import { propertySchema, bookingSchema } from './testingSchemas'; | |||
//import { makeExecutableSchema } from '../schemaGenerator'; |
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.
Left over from testing?
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 delayed response - I've been traveling all over the place recently. Yes, accidentally left this in. I'll remove it now.
bec3dc2
to
09cd519
Compare
Any chance of getting this into the next release @benjamn? |
Resolved latest conflicts - I'd love to get this merged to avoid further conflicts. Anything else you'd like to see changed about this PR @benjamn @stubailo @freiksenet |
FWIW, we've been using this in production for a while now with no issue. |
4a72745
to
e86bf77
Compare
@benjamn @evans @abernix any chance this might could get reviewed soon? I've been pointing our prod deployments at my fork for a while now, with 1000s of users. I also recently put up another PR (PR #885) and will start using those changes in production, as well. I'd love to avoid maintaining a fork with multiple one-off contributions in addition to constant conflict resolution due to upstream changes. Please let me know if there is anyone else I should CC here. I know you guys are probably very busy with your jobs and the proliferation of contributions to Apollo/GraphQL tooling, as well. Thanks again for all the effort that you've put into this library (and others)! |
This PR will continue to have conflicts with master due to the CHANGELOG file. Once this PR is reviewed, I'll resolve conflicts. |
Thank you @Druotic will release this today! |
@stubailo woot! Thanks for the review/merges! |
This simply adds support for
inheritResolversFromInterfaces
viamergeSchemas
(a simple passthrough thanks to the wonderful work done in pull request #720).I didn't open an issue first since it was a pretty small change and I was looking for a quick way to achieve my goal, but I did link issue #616 below since this is just extending the concept to an additional util.
Let me know if this isn't in line with the original intent of that issue and/or the vision of the project, but I think it will prove to be a useful option.
TODO: