persistgraphql
persistgraphql copied to clipboard
This tool can only generate 1 query when scan a directory that contains multiple ".graphql" files
I have several ".graphql" files in 1 folder, and use persistgraphql ./src/graphql/
to generate the map json file, but the result is not correct.
P.S. They are valid ".graphql" files with correct syntax and can be used with webpack-graphql-loader
.
The graphql files:
The json output:
{"mutation ($songID: Int, $playlistID: Int) {\n removeSongFromPlaylist(SongID: $songID, PlaylistID: $playlistID) {\n ID\n ClassName\n LastEdited\n Created\n Title\n Description\n NumberOfSongs\n }\n}\n":1}
I have the same issue.
@ayalon you could try my tool to generate the query mapping file: https://github.com/zzdjk6/graphql-extractor