Skip to main content

FAQ

Query conditions are correct but results are empty

When using database queries, if empty results are returned, there are usually two situations:

  1. No data matches the query conditions
  2. Data is filtered by permission control

Troubleshooting Methods

  1. Confirm data existence

    • Check directly in the CloudBase console whether the target data exists in the collection
    • Verify that the creation time and field values of the data meet expectations
  2. Check permission configuration

    • Check whether the basic permission settings of the collection allow the current user to read
    • If using security rules, verify that the rule expressions are correct
    • Confirm that the query conditions include the necessary fields required by security rules
  3. Verify query conditions

    • Simplify query conditions and gradually troubleshoot which condition causes empty results
    • Check whether field names, data types, and query syntax are correct