Skip to content

Define custom calculated fields #75

Description

@kbarbounakis

Is your feature request related to a problem? Please describe.
DataModel schema should provide a way to define custom calculated fields even if these attributes are available while expanding associated entities e.g. A customer's order may have an orderEmail field that should be mapped with Person.email attribute.

Describe the solution you'd like
Field definition may have an attribute to define a custom @themost/query#QueryExpression and this query expression should be added in final view object e.g. CREATE VIEW OrderData AS SELECT OrderBase.id, OrderBase.ordererdDate, ..., PersonBase.email AS orderEmail FROM OrderBase LEFT JOIN PersonBase ON OrderBase.customer = PersonBase.id

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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