
this is the query i apply to it:
private filterQuery(query: string[], options?: GenericListOptions): string[] {
query = [
Query.orderDesc(options?.sortField || "$createdAt"),
Query.limit(options?.limit || 15),
Query.isNull("deletedAt"),
Query.select([
"$id",
"status",
"totalAmount",
"userId",
"items",
"address",
"$createdAt",
"$updatedAt",
"deletedAt",
]),
];
if (options?.status && options?.status != -2) {
query.push(Query.equal("status", options?.status));
}
if (options?.from && options?.to) {
query.push(Query.between("$createdAt", options?.from, options?.to));
}
return query;
}

are one of those attributes a relationship attribute?

yeah address and items are relational

Queries on relationships are not supported

thanks, so i guess i just have to put ItemIds and addressId As their Attribute to exclude Items And Address.
Recommended threads
- Pro Plan additonal resources
When on the Pro plan do you automatically get charged for more resources, or is they charges you can add on if you need more resources? eg. Functions says "$2 ...
- Assistance Required: Error While Claimin...
I have registered for the 100 Agents Hackathon and received the promotional offer to claim $50 in credits for Appwrite Cloud Pro. However, while attempting to r...
- Choose SMTP per email
Hi, I'm looking quite some time for the answer but can't find one. Do any of you know if it is possible to use a specific SMTP provider per message (email). E.g...
