I’m confident the dg.client is valid as I can successfully list orders.
If I call this function (through HTTP) with a valid JWT and invalid JSON, I’d expect to see some error with an indication of how it failed, no err is triggered and the output shows the following
I can’t really tell what is happening, did I not send some CORS headers, is the Auth wrong, did the invalid JSON data cause an error? I don’t know, please help
If I’m trying to create a new order, do I just send it a new Order structure in the format the schema requires?
I’m just trying to get a basic dgo grpc call to create a new order, seems like a simple usecase.
The Log message ‘ORDER CREATED’ is just my own log message showing that no error occurred but I would have expected either an authentication failure or a bad data error but got neither.
This explains that a mutation with start_ts 21111393 and commit_ts 21111395 is executed successfully with preds defined in the response. You can also see the latencies during the execution of the mutation.
Yes you need to send the order structure in the format of the schema. If the schema mode is flexible than if there is a predicate in the object not defined in the schema it will be created by dgraph with respective data type.
Any reason why you would expect an error? Is there any auth rules that should have triggered and cause the mutation to fail.