Skip to content
Back

listDocuments is deprecated. What should I do now?

  • 0
  • React Native
Abrar Rahman
31 Oct, 2025, 19:15
TypeScript
const database = new Databases(client);

export const updateSearchCount = async (query: string, movie: Movie) => {
    const result = await database.listDocuments(
        DATABASE_ID,
        COLLECTION_ID,
        [Query.equal('searchTerm', query)]);
TL;DR
The "listDocuments" method is deprecated. Developers should switch to the "queryDocuments" method instead for Firebase Firestore. Update code to use "queryDocuments" instead of "listDocuments".
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