Sending the same request body in creating relation...
# talk-keto
e
Sending the same request body in creating relationship tuples creates multiple entry causing redundancy, is there a way to skip adding the permission if it already exists? example if i have a request body:
Copy code
{
  "namespace": "Folder",
  "object": "keto/src/",
  "relation": "parents",
  "subject_set": {
    "namespace": "Folder",
    "object": "keto/",
    "relation": ""
  }
}
and i make multiple put request to the create API instead of keeping a single copy it adds multiple entries of the same relationship tuple. #keto
d
Just discovered this myself. Having to force the client to guard inserts with get relationship checks is not great