Web Developer
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);
});`