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
- GB Hours IS NOT resetting
Hi, I was checking my usage and noticed that all of my usage quotas were reset on August 20, 2026, when my billing cycle renewed. Everything else appears to ha...
- Confused about Appwrite Pro pricing
Hi. I've been subscribed to the $25 Appwrite Pro plan, but I've been getting charged $40. I have two projects on my account. I was wondering where exactly the e...
- Custom domain for Google Auth
Hello! I connected my custom domain to my Appwrite project, but I can't get the Google login/consent screen to show my domain instead of the Appwrite domain. I...