Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Support mappers #15

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

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions