Skip to content
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(utils): makeExtendSchemaPlugin accepts typeDef array #574

Conversation

jkantr
Copy link
Contributor

@jkantr jkantr commented Nov 30, 2019

This falls in line a little closer with behavior seen in Apollo server and (I believe) the reference implementation. It also makes it slightly easier to modularize schema extensions local to a project using postgraphile.

First time looking at core of the project, so I hope I got the general idea right. I'm also not super familiar with the graphql AST so if this is too naive of an implementation I can go back to the drawing board :) fwiw it appears to work, and it should maintain order of the typeDefs as in the given array (which I imagine would be the important part).

@jkantr jkantr requested a review from benjie December 3, 2019 00:09
@benjie
Copy link
Member

benjie commented Dec 10, 2019

This is perfect @jkantr; please can you merge in the latest master (don't rebase), resolve the conflicts and then we're good to merge! 🎉

@benjie benjie changed the base branch from master to v4-5 December 11, 2019 12:04
@benjie benjie changed the title feat(postgraphile) enhance extendSchemaPlugin to accept an array of typeDefs feat(utils): makeExtendSchemaPlugin accepts typeDef array Dec 11, 2019
@benjie benjie merged commit 82ff872 into graphile:v4-5 Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants