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
Marshall states hookContext.params.adapter.model = anotherModel should work... but it doesn't.
context.service.db = anotherLowDBService.db does work however.
Part of the issue is this is based on a service that is not a database adapter... Decoupling the adapter from the service should help. May require minor api changes.
Marshall states
hookContext.params.adapter.model = anotherModel
should work... but it doesn't.context.service.db = anotherLowDBService.db
does work however.Part of the issue is this is based on a service that is not a database adapter... Decoupling the adapter from the service should help. May require minor api changes.
I confirmed with Marshall that this is supposed to work.
https://stackblitz.com/edit/feathers-v5-adapter-swapping?file=app.ts,messages.yaml
Fix may just be moving db to Model
All the tests are passing... this is just a feature that is not tested for, we should upstream a test for it
Worse still... attempting to use the feature causes the service to break.
Looks like I screwed this up royally... I was supposed to use getModel for my model... but I implemented my own load function.
https://github.com/feathersjs/feathers/blob/dove/packages/mongodb/src/adapter.ts#L98C3-L101C4
Feathers memory also lacks support for the feature
feathersjs/feathers#3283
The text was updated successfully, but these errors were encountered: