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
Is there any ability to use this with the jsonb column type and be able to filter based on data available within the object stored there?
We are making heavy use of partially normalized data (with joi as our validation schema for for the denormalized blobs) and it seems like it would be an interesting fit for this.
I’d be happy to investigate a PR if this is of interest or possibly in scope.
The text was updated successfully, but these errors were encountered:
Yes! This should totally be possible & I'd totally love a PR if you have the time. Maybe something like:
Model.object.filter({'json_column > field1 > field2:gt': 3,// equiv to json_column #> {field1, field2}'json_column >> field1 >> field2:lt': 2// equiv to json_column #>> {field1, field2}})// or, we could treat the json column as a psuedo-joinable table, which would make// normalizing json columns in client code easier down the line?Model.object.filter({'json_column.field1.field2:gt': 3,// equiv to json_column #> {field1, field2}'json_column.field1.field2:lt': 2// equiv to json_column #>> {field1, field2}})
Is there any ability to use this with the jsonb column type and be able to filter based on data available within the object stored there?
We are making heavy use of partially normalized data (with joi as our validation schema for for the denormalized blobs) and it seems like it would be an interesting fit for this.
I’d be happy to investigate a PR if this is of interest or possibly in scope.
The text was updated successfully, but these errors were encountered: