Skip to content

Fix extensionASTNodes assigment#1390

Merged
leebyron merged 2 commits intographql:masterfrom
IvanGoncharov:fixExtensionASTNodes
Jun 14, 2018
Merged

Fix extensionASTNodes assigment#1390
leebyron merged 2 commits intographql:masterfrom
IvanGoncharov:fixExtensionASTNodes

Conversation

@IvanGoncharov
Copy link
Copy Markdown
Member

@IvanGoncharov IvanGoncharov commented Jun 12, 2018

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

Copy link
Copy Markdown
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.


it('does not allow replacing a default directive', () => {
const ast = parse(`
const sdl = `
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

4 participants