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
I have a mutation that let me publish a content with restrictions to certain users, I have two arguments for mutation, the first is the content data and the second one is the restriction rules input.
The content data looks like
publicclassContentInput{//... many input fields}
And the input argument for security restricted looks like
publicSimpleImageMutationResultAddContent([ScopedService]DBContextdb,ContentInputdata,PrivacyInput?privacy){//In these lines add my contentvarusers=db.Users.ApplyFilters(privacy.users);varaudiences=db.Users.ApplyFilters(privacy.audiences);// Store content data associated to filtered users and audiences}
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.
-
Hi,
I have a mutation that let me publish a content with restrictions to certain users, I have two arguments for mutation, the first is the content data and the second one is the restriction rules input.
The content data looks like
And the input argument for security restricted looks like
My question is how apply the privacy rules filters to a custom IQueryable inside of my mutation. Something like that.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions