We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Steps to Reproduce:
using extension edgeql_http; module default { type Person { required name: str; }; }
curl -i -H "Content-Type: application/json" --request GET -u admin:<PASSWORD> "http://localhost:10700/branch/main/edgeql?query=insert%20Person%20%7Bname%3A%3D%20%22Fred%22%7D%3B%0A%0A%0A"
insert Person {name:= "Fred"};
The expected behavior is that this query is rejected, like a GraphQL query containing a mutation would be rejected, given that it changes the database in a non-idempotent manner. The docs say "[Since HTTP is a stateless protocol, no DDL, transaction commands, can be executed using this endpoint.](https://docs.geldata.com/reference/clients/http)", but that applies equally to insertions, deletions, and updates.
The observed behavior is that each GET request adds a Person entity to the database.
The text was updated successfully, but these errors were encountered:
I wonder if we actually disallow GraphQL mutations on GET, too.
Sorry, something went wrong.
No branches or pull requests
Steps to Reproduce:
The expected behavior is that this query is rejected, like a GraphQL query containing a mutation would be rejected, given that it changes the database in a non-idempotent manner. The docs say "[Since HTTP is a stateless protocol, no DDL, transaction commands, can be executed using this endpoint.](https://docs.geldata.com/reference/clients/http)", but that applies equally to insertions, deletions, and updates.
The observed behavior is that each GET request adds a Person entity to the database.
The text was updated successfully, but these errors were encountered: