I’m looking for NodeJS client examples
# spicedb
z
I’m playing with the NodeJS client library and however it was easy to make a check permission call based on the example provided I’m struggling with the other APIs.
v
👋 We have some examples here: https://github.com/authzed/authzed-node/blob/main/examples/v1/example.js What other API examples are you looking for?
z
I wanted to make a LookupResourceRequest in order to list « documents » a user has « view » permission on. Calling then client.lookupResources I get « INVALID_ARGUMENT ».
I guess I’m wrongly setting the « resourceObjectType » with an ObectReference. I don’t know what to pass there.
Sorry, I just realized I had to pass a simple string as resourceObjectType.
v
feel free to open a PR to the aforementioned examples repo if you'd like to contribute the example 🙇
4 Views