Back

Getdocument using other attributes

  • 0
  • Databases
  • Web
  • Cloud
KINGKabir👑
10 Jan, 2025, 15:13

Getdocument uses redis for superfast query, is it possible to use it using attributes other than "document Id"?

TL;DR
Developers want to use Getdocument with attributes other than "document Id," but it only works with the document Id. They can use list documents and a query instead. Getdocument uses Redis for quick queries.
Kenny
10 Jan, 2025, 15:31

no, get document only works with the document id. You can do list documents and use a query. I do believe these are only cached in redis.

Leхa
10 Jan, 2025, 15:43

getDocuments with Query.limit(1) pretty fast

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more