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
- Project is currently blocked
When accessing the Appwrite console, I receive the message: "Project is currently blocked. Access to this project is restricted. Contact support if the issue pe...
- {"code": 1008, "message": "Invalid Origi...
Nothing has changed in my application or console settings so I'm curious as to what I need to do to fix this. I already have the client registered so I'm not en...
- ClientException with SocketException: Cl...
hi <@564158268319203348> i have noticed this 500 status code in my function requests, it seems its not able to connect to the internet in the function as reque...