platform
platform copied to clipboard
Invalid query: Invalid orderBy property normalizedLabel. Should be used in a range "where" query
on v.22 the query:
const queryOpts = {
where: [
["normalizedParentDomainName", "==", "dash"],
],
orderBy: [["normalizedLabel", "asc"]],
};
throws
INVALID_ARGUMENT: Invalid query: Invalid orderBy property normalizedLabel. Should be used in a range "where" query
instead of retrieving the sorted documents.