Skip to content
Back

what is correct schema for querying phone

  • 0
  • Flutter
Wiseman
17 Dec, 2024, 16:55

I/flutter (27654): Error fetching user by phone: AppwriteException: general_query_invalid, Invalid query: Attribute not found in schema: phone (400)

TypeScript
      databaseId: 'your_database_id',
      collectionId: 'your_collection_id',
      queries: [
        Query.equal('phone', user.phone),
      ],
    );```
TL;DR
Schema error when querying user by phone. Method to query the correct schema: Make sure the 'phone' attribute exists in the schema, or adjust the query accordingly.
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