👟 Reproduction steps
Tables:
- inspection
- customer
- car
Relationships:
customer -> car (one to many).
customer -> inspection (one to many).
car -> inspection (one to many).
Query:
Query.contains('plate_number', plateNumber),
Query.equal('tenant_id', getUserActiveTenantId()),
Query.select([
'*',
'inspections.$id',
'inspections.type',
'customer.*',
'customer.inspections.type',
])
if query returns more than one car it will only attach customer.inspections to the first car the rest will only get customer only without the customer.inspections.
👍 Expected behavior
Every element in the car to obey to the query.select
👎 Actual Behavior
When multiple cars appeared on search:

Selecting `BAIC U5 PLUS`
When a single car appeared on search:
Selecting the same vehicle BAIC U5 PLUS
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
MacOS
🧱 Your Environment
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
👟 Reproduction steps
Tables:
Relationships:
customer -> car (one to many).
customer -> inspection (one to many).
car -> inspection (one to many).
Query:
if query returns more than one car it will only attach
customer.inspectionsto the first car the rest will only getcustomeronly without thecustomer.inspections.👍 Expected behavior
Every element in the car to obey to the
query.select👎 Actual Behavior
When multiple cars appeared on search:
When a single car appeared on search:
Selecting the same vehicle
BAIC U5 PLUS🎲 Appwrite version
Appwrite Cloud
💻 Operating system
MacOS
🧱 Your Environment
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?