https://authzed.com logo
#spicedb
Title
# spicedb
i

Igor.Shmukler

09/19/2022, 5:19 PM
hello, I was looking for example
DeleteRelationships
for NodeJS, and could not find one. Wrote something myself - please see below. Does it look right?
Copy code
const deleteRelationships = v1.DeleteRelationshipsRequest.create({
        relationshipFilter: v1.RelationshipFilter.create({
          resourceType: kind,
          optionalResourceId: id,
          optionalRelation: role,
          optionalSubjectFilter: v1.SubjectFilter.create({
            subjectType: 'user',
            optionalSubjectId: user
          })
        })
      });