We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Often, I am not sure a relation will be present or not when a server-side permission is involved.
I'd like to avoid this kind of code:
if (userState.links.has('identity')) { identityState = await userState.follow('identity').get(); }
And have something like this instead:
// this would lead to an undefined identityState if the relation 'identity' is absent identityState = await userState.mayFollow('identity').get();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Often, I am not sure a relation will be present or not when a server-side permission is involved.
I'd like to avoid this kind of code:
And have something like this instead:
The text was updated successfully, but these errors were encountered: