Closed ribalnasr closed 4 years ago
nevermind... i finally found that in your docs: https://flamelink.github.io/flamelink-js-sdk/#/api-overview?id=fields
solution:
.subscribe({
schemaKey: 'projects',
populate: [{
field: 'partners',
fields: ['name', 'logo'],
populate: ['logo']
}]
})
Thanks, sorry, I missed this issue when it came in. Glad you got it working.
hi i have a collection of projects, each project has a relational field of multiple partners and each partner has a logo image.
the final result i expect is as follows:
i'm try the following query
but the above populate only the partner level and returns the logo as a document reference:
any suggestions?
please note that using populate:true is out of question since it conflicts with my firestore rules, i need to explicit specify each field i need to populate.