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

graphql-editor AST manipulation #150

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

rastislav-balcercik
Copy link
Contributor

related to #23

return { fileWithoutFragment, removedFragment }
}

export function addFragment(file: string, fragment: string) {
Copy link
Contributor

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'
Copy link
Contributor

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.

@rastislav-balcercik rastislav-balcercik changed the title WIP graphql-editor AST manipulation graphql-editor AST manipulation Oct 27, 2021
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

2 participants