#[SOLVED] Query does not work on collections that has relationships with other collections

5 messages · Page 1 of 1 (latest)

sinful wave
#
    const res = await db.listDocuments(dbName, 'users', [
      Query.equal('$id', [meta.$id]),
      Query.orderDesc('recipients'),
      Query.orderDesc('addresses'),
    ]);
    console.log({ res });

This does not work.
recipients and addresses are separate collections that has relationship with users

I'm trying to be efficient querying users recipients and addresses but it seems I will need todo a separate query for recipients and addresses if I need to sort it.

fast vale
sinful wave
#

Well this url doesn't give any insights to my question

gaunt parrot
graceful whale
#

[SOLVED] Query does not work on collections that has relationships with other collections