I'm encountering a problem when executing a query to get all the documents for an array of id's in Java.
This is my the query I'm passing:
eventIds.stream()
.map(eventId -> Query.Companion.equal("$id", eventId.toString()))
.toList()
));```
When executing this query using databases.listDocuments() I'm getting the following error:
```Invalid query: Attribute not found in schema: _uid```
It seems like it's converting the $ character to _u in the query.
If I try to do the same with an attribute I set myself, let's say the attribute "name" everything works as expected.
But I want to select the documents by their documentId and not by an attribute I set myself.
Appreciate any help, I'm sure it's just a little mistake I'm making here.
This is my Java code for the listDocuments():
```databases.listDocuments(
"event-db",
"event",
queries,
new CoroutineCallback<>((result, error) -> {
if (error != null) {
log.error(error.getMessage());
} else {
assert result != null;
log.info("{} Events found", result.getDocuments().size());
result.getDocuments().forEach(document -> events.add(appwriteDataToEvent(document)));
}
latch.countDown();
}));```
Hey there 👋 Code looks good to me. What Appwrite version are you running?
I'm on version 1.5.5 self hosted
Hmm honestly, I am not sure what could be the issue. Let me cc @Steven for this one
Recommended threads
- Other DateTime Columns Are Saved Incorre...
When opening a row’s details from the console and editing any field, the timestamps of other DateTime columns are being automatically changed and incorrectly sa...
- Github App "Failed to retrieve access to...
When trying to connect the Github App on 1.8.1 I recieve this error: ```[Error] Method: GET [Error] URL: /v1/vcs/github/callback [Error] Type: Exception [Error]...
- GOT 500 error when going to the appwrite...
I gott 500 internal error screen and my API is timeout. please help to take a look. Traceback (most recent call last): File "D:\conda\envs\wrista\Lib\site-pa...