Skip to content

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.

2 participants