I am trying to use pydgraph w/ slash graphql as that seems the only way to get atomic transactions and when I do
client_stub = pydgraph.DgraphClientStub('localhost:9080') using my slash graphql address, i get a DNS error
details = "DNS resolution failed for service for the url when doing a query.
Is there any tutorials or walkthroughs for using slashql w/ pydgraph or even better how to do atomic transactions w/ slash graphql. The documentation for the official client is very limited, there is also no talk about using authenticated queries with it, I assume you pass the metadata argument. There is mention of using headers, but only with alter calls, and there is mention of passing credentials, but no mention what they should look like.
I did find
pydgraph.DgraphClientStub.from_slash_endpoint for using a slashql endpoint in a different area but not in that repo’s documentation. Still could use examples. For example, when trying to do a mutation, I get errors that the ‘Schema not defined for predicate’, and I have to use the type.field notation, but in the examples, it does not do this, I only found this digging in other documentation. But I have yet to figure out how to get mutations to work, I managed to avoid error messages but it isn’t updating my instance db.