Skip to content

Support mappers #15

@lyz-code

Description

@lyz-code

Description

It would be nice if the repositories could load a schema to understand the relationship between entities.

In this schema we could define the following relationships:

  • One to one
  • One to many
  • Many to many

In a way that when we .get an object we get the option to load the mappers, and if they are, the repo will get the required objects and load them in the specified attribute.

Possible Solution

At repo initialization, a schema attribute is set with the desired relationships.

Then we will need to decide how it affects the different base methods.

Additional context

Related Issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions