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 extensionASTNodes assigment #1390

Merged
merged 2 commits into from
Jun 14, 2018

Conversation

IvanGoncharov
Copy link
Member

@IvanGoncharov IvanGoncharov commented Jun 12, 2018

Cleanup tests in preparation to #1388 and also found a bug with extensionASTNodes

Copy link
Contributor

@mjmahone mjmahone left a comment

Choose a reason for hiding this comment

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

Thanks for going through this comprehensively, @IvanGoncharov ! This looks really good to me.

@@ -884,11 +980,11 @@ describe('extendSchema', () => {
});

it('does not allow replacing a default directive', () => {
const ast = parse(`
const sdl = `
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this, but want to make sure I understand our guidelines for sdl vs ast: sdl => used when we have TypeSystemDefinitionNode types, and ast for ExecutableDefinitionNode types?

Copy link
Member Author

Choose a reason for hiding this comment

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

@mjmahone SDL - is a string containing TypeSystemDefinitions
AST - a result of parse being called on any string in GraphQL syntax.

@leebyron leebyron merged commit f9e6d81 into graphql:master Jun 14, 2018
@leebyron
Copy link
Contributor

Awesome thanks for spotting and catching this before release!

@IvanGoncharov IvanGoncharov deleted the fixExtensionASTNodes branch July 13, 2018 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants