Support jsonb operators with foreign table #27255
Unanswered
lorenzofiamingo
asked this question in
Feature Requests
Replies: 0 comments
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 have a model defined as
I would like to get a workplace from my Table, but when I try to read my model in this way
I get a decodable error since Season(id) resolves in an array of json object like
{id: "myId0000-0000..."}when I need just a plain array of uuid.I tried to do the select like this
// ... .select("*, seasonIdentifiers:Season(id) -> id") // ...but is not working as expected. Any idea? I would like to not add custom decoding logic or rpc calls...
The corresponding query RPC would be
but is really poorly maintainable for many tables.
Would be possible to support something like this?
.select("*, seasonIdentifiers:Season(id) -> id")All reactions