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
- education plan not activated
Hi I have an edu id 13103046@iubat.edu but when I am trying to claim my plan and trying to logging with github where education student plan active. the appwrite...
- 500 simultaneous OAuth logins from the s...
Hi, I'd like to ask about rate limiting around Google OAuth login on Appwrite Cloud. **OVERVIEW** Service type: A PWA (web app) for members of a university clu...
- Suspicious access pattern detected when ...
Hello, I am having trouble restoring my project. In the past it worked with no problems, but today I get an error "Suspicious access pattern detected". How can ...