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
- Selfhost - Starting Docker containers fa...
I am stuck at installing appwrite. Specifically, the containers dont want to start up. The images are downloaded and ready. Dockhand is reporting containers st...
- It says domain already used but I have d...
I accidentally deleted the project in which I used my domain originally (orexia.app) from name.com. Now I am trying to add it to a different project and it says...
- Is this normal in the self host custom d...
when i try to add custom domain to the project did not see this in 1.8.0 ok when pressed the retry it says "DNS verification failed with resolver 8.8.8.8. Domai...