Skip to content
Back

Relationships restricted to a max depth of three levels. (Biggest Joke Ever🤣)

  • 0
  • Flutter
  • Databases
  • General
  • Cloud
  • React Native
-N I N J A-
24 Apr, 2025, 19:03

When I do query like:

TypeScript
await _databases.listDocuments(
        databaseId: AppwriteConfig.DATABASE_ID,
        collectionId: AppwriteConfig.SERVICES_COLLECTION_ID,
        queries: [
          Query.limit(1),
        ],
      );

to get all services and services has two-way relationship with users database, but why I am not getting the array of services in user array??

Example: list services collection => serviceData+UserData(where is list of services becoz it has relationship with servces collection)? 😂

TL;DR
Developers are experiencing an issue where querying for services is not returning the array of services within the user array due to relationship restrictions. The solution is to adjust the query to ensure the retrieval of services accurately reflects the relationships in the database.
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