-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Mutation not creating query yaml file #372
Comments
Noting it created the "findUsers" perfectly fine |
maybe this helps: #361 (comment) |
I did see that comment yesterday and tried testing it. However, when I have it non-production mode meaning it should generate the query files, it is not creating the mutation query. |
test it with different mutations. remove all comments in your query. only if the mutation executes successfully it will create the query file.
|
change query to this:
and if this dosen't work, please send the error from log. the |
Okay, I think I got it, missing at least a query parameter of id or something else appears to empty the query |
Thank you ehsan, you were very helpful |
What version of GraphJin are you using?
graphjin version
v0.20.4
Have you tried reproducing the issue with the latest release?
Yes
What is the hardware spec (RAM, OS)?
Linux, Intel 6core, 16 gb.
Steps to reproduce the issue (config used to run GraphJin).
`db, err := sql.Open("pgx", DsnStrBuilder())
if err != nil {
log.Fatal(err)
}
I'm just doing some crude testing and I've created a mutation called "createUser" - however it does not seem to be creating a query.yaml file for said mutation.
When I change the confid to production to force use the allow list, it complains that the mutation does not exist.
Am I doing something wrong?
Expected behaviour and actual result.
I suspect it should be creating a mutation query file?
Correct me if I'm wrong.
The text was updated successfully, but these errors were encountered: