Skip to content

Filtering and Sorting in nested embedded schemas #485

Answered by woylie
Niedman asked this question in Q&A
Discussion options

You must be logged in to vote

You can configure a custom field and use a fragment with one of the Postgres JSON operators.

Alternatively, you can add a lateral join in which you select the value using the same fragment and operator as you would use in the custom field, give the binding an name, and configure a join field. The advantage of this option is that Flop can apply any operator here, while with the custom field, you have to implement each operator you want to support. The Postgres query optimizer should be able to optimize the lateral join away. Check the query plan to confirm.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Niedman
Comment options

Answer selected by Niedman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants