
api.provider().database.listDocuments(databaseId,collectionId, [Query.equal('lesson',id)],[Query.equal('subject',cat)], ); I used this syntax but it is taking only the first condition and ignoring the second; I have kept an key index containing two attributes lesson and subject but the above syntax throw an error as index not found , so i added subject and lesson as separate index but now it is taking only the first query.

I think both queries should be inside on array. Like so
api.provider().database
.listDocuments(databaseId, collectionId,
[
Query.equal('lesson', id),
Query.equal('subject', cat)
]
);
Recommended threads
- Failed sending to target forbidden error
// Send test email using the specific target ID await messaging.createEmail( 'unique()', // messageId 'Test Email, // subject ...
- What is the property typescript type for...
the template of Bun.js gives me something like this: `export default async ({ req, res, log, error }: any) => {`, can i replace the `any`with the real type? π
- How to add custom claims to a Google Sig...
For example, i would like to add organization info to the token. π
