-
Notifications
You must be signed in to change notification settings - Fork 2
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 query error #2
Comments
Hi @gleba, Mutation queries are currently not supported, as they send another response as queries. But for now, you can just ignore the error, or modify an existing object by:
Best, Paul |
@gleba What's your usecase to send raw mutation queries? Actuall, the api is designed to be a high level api wrapper around the raw gRPC. Therefore a query is scoped to the right object and on set the uid's are reassigned automatically. If you like to send some special raw gRPC request, you can do this the following way: var request = new DgraphClient.Request()
request.query = 'mutation {set{<9963693899913877966> <state> "4".}}'
var response = await client.run(request) The response is a structured like this proto https://github.com/dgraph-io/dgraph/blob/release/v0.7.5/protos/graphp/graphresponse.proto#L97-L102 Nevertheless, this is all WIP and designed around my usecases, so if you have some ideas to extend the API, I am curious to hear them. |
@reicheltp Thank you. |
The requests with mutations as
mutation {set{<9963693899913877966> <state> "4".}}
returned empty and with an error
But make changes.
Output log:
source code:
The text was updated successfully, but these errors were encountered: