
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
- Attribute creation stuck at processing f...
Hey Appwrite community! 👋 I'm running into a persistent issue with my self-hosted Appwrite installation (v1.6.1) where programmatically creating attributes fo...
- Could not open input file: /usr/src/code...
I updated my selfhosted instance to `1.6.2` and the new service (`appwrite-task-stats-resources`) failed to start. The only log message I see is: ``` Could not ...
- functions page returns 500
I am running selfhosted appwrite version 1.6.0 and all of a sudden my functions page stopped working, returning a 500. I don't see anything in the logs that wo...
