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

fix(utils): fix makeExtendSchemaPlugin @pgQuery directive #424

Merged
merged 1 commit into from Mar 18, 2019

Conversation

benjie
Copy link
Member

@benjie benjie commented Mar 18, 2019

#413 introduced this feature, but it only worked when the connection and the parent type were from the same table (?!).

@@ -732,7 +732,7 @@ function getFields<TSource>(
);
}
}
if (directives.pgQuery && table && pgIntrospection === table) {
if (directives.pgQuery && table) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one line is the actual fix; the rest are just tests.

@benjie benjie merged commit 5211758 into master Mar 18, 2019
@benjie benjie deleted the fix-extend-connections branch March 18, 2019 21:57
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.

None yet

1 participant