Rank 3: Container
in appwrite cloud 1.1.2 index not found while using Query.equal("createdBy", "random")
this should result in a direct query list, "why" is this considering the attribute as index?
Votes
0
Replies
10
Participants
Unknown
Messages
11
Rank 3: Container
in appwrite cloud 1.1.2 index not found while using Query.equal("createdBy", "random")
this should result in a direct query list, "why" is this considering the attribute as index?
Rank 3: Container
const chatSessions = await database.listDocuments( databaseId, sessionCollectionId, [Query.equal('createdBy', userId!!)] ); console.log('Chat Sessions', chatSessions.documents);Have you added index to createdBy attribute?
Rank 3: Container
nope but my question is why :(
Rank 3: Container
can't we directly query an attrib?
Rank 3: Container
Rank 3: Container
yup its working now thanks :)
Rank 3: Container
but my question still remains the same, are the docs wrong? Or I'm understanding it in a wrong way...
The docs refereing to version 1.3.0+ in which indexes are no longer mandatory
Rank 3: Container
ohhhh
Rank 3: Container
thanks