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
- [401] Access to this resource is blocked...
Recently I found that my console is blocked. Perhaps somebody did try to upload more documents than allowed... I'll add limitation but anybody can help to unblo...
- Can't make Function in Go work
I've tried everything, using workspaces, modules, symbolic links, binaries, using the root of repo and "cd" to the function but it always fails becaise git is n...
- Support only numbers option on createTok...
Requesting for more customization on the createToken endpoint: https://appwrite.io/docs/references/cloud/server-dart/users#createToken I understand we can no...