-
Notifications
You must be signed in to change notification settings - Fork 24
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
graphql-editor AST manipulation #150
base: master
Are you sure you want to change the base?
graphql-editor AST manipulation #150
Conversation
return { fileWithoutFragment, removedFragment } | ||
} | ||
|
||
export function addFragment(file: string, fragment: string) { |
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.
please rename to originalFileContent: string
@@ -0,0 +1,141 @@ | |||
import { BREAK, FragmentDefinitionNode, SelectionNode, FieldNode, parse, visit } from 'graphql' | |||
import { addFragmentField } from '../../modify' |
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.
what is the different between ast and modify directory after merging this pr? (it seems that both modify the AST now) Let's move files from ../../modify
to somewhere else please.
This reverts commit c264b1f.
related to #23