Skip to content
Discussion options

You must be logged in to vote

Hey! As of today, there is no way of preloading subcollections, so you'll have fetch the collection first.

@Collection('companies')
class Company {}

const companyRepository = getRepository(Company);

const company = companyRepository.getById('Fire LLC');
const members = company.members.find()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wovalle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #262 on June 07, 2021 14:57.