-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Option to specify custom mutation query name #445
Comments
Mutations can specify a custom name with |
@josephsavona is the code you referring to the one from the
if yes, then this does not solve the problem. As an example from scala.js relay version we developed, the query looks like this, even after applying the change you suggested:
as you can see in scala.js it still has a weird name, that indicates me that the name that is used in the query is generated of the name from the actual mutation instance in the global namespace (just a guess). In scala.js this must be unique over the whole javascript libraries that are used, thats why the package name is used. If your suggestion would affect the name used in the query i guess it should be reflected somewhere in this path even in scala.js. but i'm not 100% certain. |
@xsistens Thanks for providing more detail, I see what's happening. It seems reasonable to use the name of the mutation (from the |
@josephsavona thanks alot for pointer , i just opened a PR #448 please review it , i can confirm that scalajs mutations working fine now 👍 |
Hi,
Scala.js-relay mutation queries not working because of this reason graphql/graphql-spec#102
i don't see any activity from graphql side may be it requires more work!, In my understanding graphql should allow javascript valid identifiers as its not the case now and scala.js can't do anything either so is it possible to allow option( static queryName) to define mutation query names ? or can we modify query name to match graphql ASCII set before sending ?
please let me know if either of cases can possible ? , i am happy to send a PR!
The text was updated successfully, but these errors were encountered: