platform icon indicating copy to clipboard operation
platform copied to clipboard

Invalid query: Invalid orderBy property normalizedLabel. Should be used in a range "where" query

Open dashameter opened this issue 2 years ago • 0 comments

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.

dashameter avatar Apr 12 '22 10:04 dashameter