Skip to content

how to correctly process result for jsonb type with schema for sub field #11330

Discussion options

You must be logged in to vote

Hi,

I guess you can use a cast there. You could do that either manually or automatically in your custom __getitem__. The cast would be to jsonb directly.

It's likely enough to just tell sqlalchemy what type to use with type_coerce since for the db the type is already jsonb

Replies: 1 comment 1 reply

Comment options

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

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