I have a collection relation, can we get the collection via query for a single request and pick or select only a few column, for now i am using double fetch try { const data = await databasePublic.listDocuments( Deno.env.get("HONO_SINGLE_DATABASE_ID") as string, Deno.env.get("HONO_SINGLE_COLLECTION_MEMBERS_ID") as string, [Query.select(["name", "nameKanji", "$id", ])] // i wish we can get the relation via this
);
console.log(data.documents[0]["$id"])
if(data) {
const url = await databasePublic.listDocuments(
Deno.env.get("HONO_SINGLE_DATABASE_ID") as string,
Deno.env.get("HONO_SINGLE_COLLECTION_GALLERY_ID") as string,
[
Query.equal("memberId",data.documents[0]["$id"] )
]
)
console.log(url)
return c.json(url);
}
Recommended threads
- Locked out from my own account
I've create an appwrite account using onedevcontext@gmail.com and tried upgrading to Pro multiple times but failed as the Credit Card would not be accepted, I t...
- Not able to upgrade to Appwrite Pro
This is my project ID - 69f5bee60036512d2d52 I've tried multiple credit cards now and I still face the same error "Your card was declined". But I've used the s...
- Storage System
Hey guys, quick question regarding massive storage scaling. I’m working in digital forensics and I’m constantly dealing with huge binary disk images, usually be...