js-graphql-intellij-plugin icon indicating copy to clipboard operation
js-graphql-intellij-plugin copied to clipboard

operationName for Apollo Federation Gateway #595

Open SammoMichael opened this issue 3 years ago • 2 comments

Because of the way some GraphQL Servers are setup, a operationName key is required in the data object

{ "operationName": "SomeQuery", "query": {}, "variables": {}}

Added operationName key to dynamically add query, mutation, or subscription name to data object or anonymous in unnamed using regex matchers to extract the correct name from query

also set up UI to make the data key/value editable to user/opt-in. Users can configure a different keyname if needed

not sure if there is already some way built-in to accomplish this, but wanted to setup at least for my company and maybe if generalizable could be useful for others

SammoMichael avatar Feb 10 '22 23:02 SammoMichael

Screen Shot 2022-02-11 at 1 22 20 AM Everything should be working as intended, let me know what you think if you get a chance, thanks! @vepanimas

SammoMichael avatar Feb 11 '22 06:02 SammoMichael

Another question I had was I am having trouble building my fork of the plugin for Android Studio, is there an easiest way to configure a build that will work with Android Studio ? I guess I need some more practice with plugin versioning, even having trouble with Intellij, keep getting hit with different incompatibility errors :(

SammoMichael avatar Feb 11 '22 09:02 SammoMichael