https://www.ory.sh/ logo
m

mysterious-rose-44236

10/23/2021, 8:12 AM
Whats the appropriate way to - via the gRPC client - validate if a transaction of relation tuples succeeded or failed?
Copy code
wres, err := write.TransactRelationTuples(context.Background(),&ketoV1.TransactRelationTuplesRequest{
		RelationTupleDeltas: deltas,
	})
If I specify a non-existent namespace in the deltas,
err
is nill and I can't really get anything useful out of
wres
s

steep-lamp-91158

10/23/2021, 12:33 PM
hm in case of deletion, there should be no error as the end state of what you requested is there (i.e. they are already deleted) in case of insertion that should give you an error, if it does not it is a bug
m

mysterious-rose-44236

10/25/2021, 9:46 AM
Makes sense. I'll just confirm that it was insertions indeed 😄
I have no idea what I did wrong, but it's working completely as intended now!
Thanks 😄
s

steep-lamp-91158

10/25/2021, 1:55 PM
haha well, glad that it does work now
😻 1
2 Views