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
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! 🙏 **Enviro...
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...