Hello
How can I output to a list from a collection including the relationship to another collection and output these values as well.
Thank you
ex.
` let promise = databases.listDocuments( DB_ID, COLLECTION_ID_PEOPLE, COLLECTION_ID_RECORDS, [ Query.select(["PEOPLE.firstName", "PEOPLE.lastName"], ["RECORDS.title", "RECORDS.text"]) ] );
promise.then(function (response) { console.log(response); }, function (error) { console.log(error); });`
If you are using relationship, you'll always get the relate docs, at the moment you can't query relationship (not supported)
I have just tried that and it works! Something like
const books = await databases.listDocuments('db_id', 'coll_id', [
Query.select(['title', 'author.name'])
]);
[SOLVED] listDocuments with relationship
Recommended threads
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...