Replies: 1 comment
-
I'm facing a similar challenge. The type declarations for service options don't permit anything besides a string. Did you manage to get this working? |
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'm trying to port
feathers-objection
and discover in theAdapterServiceOptions
thatid
can only be a stringhttps://github.com/feathersjs/feathers/blob/dove/packages/adapter-commons/src/declarations.ts#L30
How do we manage composite keys ?
For example, in an association table, where the primary key is composed of the two foreign tables.
Actually, I transform the
id
property of service options in astring | string[]
and rewrite some parts of the_find
methods like thisAnd also for the
count
request.Do you think this is the "right" way to do it, or maybe there is another way ?
Beta Was this translation helpful? Give feedback.
All reactions