馃憻 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?