Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Implement observable generic container #9

Open
GerkinDev opened this issue Apr 6, 2018 · 0 comments
Open

Implement observable generic container #9

GerkinDev opened this issue Apr 6, 2018 · 0 comments
Assignees

Comments

@GerkinDev
Copy link
Member

In order to implement relations, entity relation fields should be an observable field, that runs the correct query if required when trying to access a property.

Example use case:

const entity: Entity = await myModel.find({id: 1});
const subEntity = await entity.attributes.relationalT1Field;// subEntity is an Entity
const subSet = await entity.attributes.relationalTxField;// subSet is a Set
@GerkinDev GerkinDev added this to the 0.4.0: Relations milestone Apr 6, 2018
@GerkinDev GerkinDev self-assigned this Apr 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant