Selfhosted: Version 1.5.5
Sdk: "appwrite": "^14.0.1"
[
Query.or([
Query.equal('$id', parentDocumentId),
Query.equal('parentDocumentId', parentDocumentId)
])
]
I get this error: Invalid query: Attribute not found in schema: _uid
Outside of Query.or it works. Should it be like that?
Thanks π
Matze
TL;DR
Issue: Query.or with Query.equal('$id', id) causing error "Invalid query: Attribute not found in schema: _uid."
Possible Solution:
The error is likely due to the incorrect use of `$id` in the Query.equal function. To fix this, use `$uid` instead:
```ts
[
Query.or([
Query.equal('$uid', parentDocumentId),
Query.equal('parentDocumentId', parentDocumentId)
])
]
```
Remember to adjust the attribute name to align with your schema.