Skip to content

docs: add ReadRelationships and DeleteRelationships examples#275

Open
ivanauth wants to merge 2 commits into
authzed:mainfrom
ivanauth:fix/issue-79-add-read-delete-relationships-examples
Open

docs: add ReadRelationships and DeleteRelationships examples#275
ivanauth wants to merge 2 commits into
authzed:mainfrom
ivanauth:fix/issue-79-add-read-delete-relationships-examples

Conversation

@ivanauth
Copy link
Copy Markdown
Contributor

@ivanauth ivanauth commented Jun 2, 2026

Adds two missing examples to examples/v1/example.js

  • ReadRelationships
  • DeleteRelationships

Closes #79

ReadRelationships is server-streaming, so the example uses the promise
client which buffers the stream into an array.

DeleteRelationships takes a RelationshipFilter (not a Relationship), so
the example shows how to combine resource and subject filters to scope
a delete to a single relationship.
@ivanauth ivanauth requested a review from a team as a code owner June 2, 2026 14:59
All RPC examples now go through the promise-wrapped client for a
uniform async/await style, instead of mixing manual Promise wrappers
around the callback client with promiseClient calls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add examples for reading relationships in the node client

1 participant