for now I use listDocuments, but I only want to get 1 document, which would be easier to use getDocument with Query instead
is it even possible?
GetDocument doesn't take queries π§
It does in the docs π
ye that's what I'm wondering lol
Weird...I can't see that...
Ah, it was added in 1.3. read the description
@Bill.IHCha :appwriteupvote:
I meant read the description for what query method is supported
ah, only select?
it would be good to support getDocument with equal query tho?
Why? It wouldn't really make sense...you're not trying to find a document with getDocument. You want the document with that ID
I have an attribute called user_id, which I want to just get it. which corresponding to discord user id
You would use list documents then
I do, but I just feel it's better to use getDocument with query, if document doesn't exist it throws an AppwriteException. Right now I have to manually check if there is document.documents[0] everytime to handle all the errors, just doesn't feel right
Get document is get document by id...
It's not find one
maybe add new function called getDocumentByQuery?
or findDocument?
into the sdk
that would be great lol
Feel free to create a feature request
alright
[SOLVED] use Query to get document
Recommended threads
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...