Skip to content

[docs] How to Model Schemas in typescript #1774

@panigrah

Description

@panigrah

Documentation suggests that we should avoid having to defined schema in the models to reduce the burden on managing schema in migrations and also in the models.

But the examples listed seem to always have schema defined in the model also.

  1. What is best practice?

  2. If I am defining schema in the model to help with typscript, then how should I be using "?" or "!" to represent nullable fields?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions