@metreeca/qest - v0.9.2
    Preparing search index...

    Function decodeCriterion

    • Decodes a Query key string into a criterion.

      Parses a Model key string into its structural Criterion components, distinguishing projection keys from constraint keys based on the presence of an Operator prefix.

      Parameters

      • key: string

        The query key string to decode

      Returns Criterion

      The parsed criterion

      TypeGuardError If key is not a string

      If key is malformed or unparseable

      decodeCriterion(">=year:releaseDate");
      // → { target: ">=", pipe: ["year"], path: ["releaseDate"] }