Skip to content

[Relation] Supports HasOne relation #1422

Closed
@dhmlau

Description

@dhmlau

Description / Steps to reproduce / Feature proposal

Add support for HasOne relation between two models.

Acceptance Criteria

  • Update factory method to handle this relation
  • create interface for CRUD methods available for the relation. See this as an example.
    • create default class which implements the interface
  • Implement the hasOne decorator
    • model decorator: infers the metadata
  • create test cases
  • update docs
  • create a follow up issue to demonstrate using multiple relations in a new/existing example

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions