Skip to content

How to transform db column to different json field #1781

@letsautom8

Description

@letsautom8

Im new to Fast API. I have followed the guide on sql databases and got it to work. Thank you for this awesome framework.
Just a question on how do I present the json fields using different field name. This is because there is a requirement to hide the actual column name of the database.
db column:
building_id

expected json response
buildingId

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions