You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are implementing the ListRelations method (using the .NET SDK) and noticed that when passing a relation that does not exists, ListRelations is returning the following exception (relation not found), is this expected?
OpenFga.Sdk.Exceptions.FgaApiValidationError: relation 'agreement#can_do_something' not found
I would expect the following:
When passing 2 relations that exists (can_do_A, can_do_B) and 1 relation that does not exist (can_do_something) in the authorization model:
Evaluate relations that exists (can_do_A, can_do_B) and return them (if user has relations)
Ignore relation that does not exist (can_do_something)
Another question is, there is a way to List the relations a user has on an object without passing the relations?
Asking because when using CLI this is possible by doing the following: fga query list-relations user:anne document:readme
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello team 👋
We are implementing the ListRelations method (using the .NET SDK) and noticed that when passing a relation that does not exists, ListRelations is returning the following exception (relation not found), is this expected?
OpenFga.Sdk.Exceptions.FgaApiValidationError: relation 'agreement#can_do_something' not foundI would expect the following:
can_do_A,can_do_B) and 1 relation that does not exist (can_do_something) in the authorization model:can_do_A,can_do_B) and return them (if user has relations)can_do_something)Another question is, there is a way to List the relations a user has on an object without passing the relations?
Asking because when using CLI this is possible by doing the following:
fga query list-relations user:anne document:readmeLet me know your thoughts... 💭
Thanks and keep up the good work!
All reactions