persistgraphql icon indicating copy to clipboard operation
persistgraphql copied to clipboard

This tool can only generate 1 query when scan a directory that contains multiple ".graphql" files

Open zzdjk6 opened this issue 6 years ago • 2 comments

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:

wx20180805-235104 graphql.zip

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}

zzdjk6 avatar Aug 05 '18 11:08 zzdjk6

I have the same issue.

ayalon avatar Sep 05 '18 13:09 ayalon

@ayalon you could try my tool to generate the query mapping file: https://github.com/zzdjk6/graphql-extractor

zzdjk6 avatar Sep 07 '18 16:09 zzdjk6