Caio Carvalho
03/04/2024, 6:01 PMdocument__categoryId: "int(_['categoryId']) if 'categoryId' record else '__NULL__'"
I'm using mongodb to postgres. Thanks for support!Edgar Ramírez (Arch.dev)
03/04/2024, 6:06 PMdocument__categoryId: "int(_['categoryId']) if 'categoryId' in record else None"
Caio Carvalho
03/04/2024, 6:20 PMEdgar Ramírez (Arch.dev)
03/04/2024, 6:23 PMdocument__categoryId
was null in all records? Did categoryId
have a value for those?Caio Carvalho
03/04/2024, 6:28 PMstr(_['document__categoryId'] if 'document__categoryId' in record else 0)
Then, has saved the categoryId and None in document that no there valueCaio Carvalho
03/04/2024, 6:32 PMEdgar Ramírez (Arch.dev)
03/04/2024, 6:46 PMstr(...)
, like str(_['document__categoryId']) if 'document__categoryId' in record else 0
Caio Carvalho
03/04/2024, 6:48 PM