Replies: 1 comment
-
|
Moin. I don't use NoSQL at all so I don't have the same problem. There are multiple possibilities:
authorize({
adapter: 'mongodb',
hooks: {
around: { ... }
}
})
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently started converting an app using dove
pre-17to5.0.0. This brought along the switch to@feathersjs/mongodband with it the conversion of strings to ObjectIDs in a resolver instead of in mongoose.Since feathers-casl calls
_getinternally, the conversion is skipped. My first idea was to useresolveQueryObjectIdmanually when defining my rules e.g.:can('read', 'users', { _id: resolveQueryObjectId({ $in: userIdsManagedByUser }) });This breaks the ability in the frontend since IDs are strings in the frontend.
Is this something we can address in feathers-casl or do you have any better ideas to solve this problem?
Greetings from Kiel :)
Beta Was this translation helpful? Give feedback.
All reactions