pnwkit 3.0 - v4.3.0
    Preparing search index...

    Function Enum

    • Wrap a value as a GraphQL enum so it is emitted unquoted in the query.

      Type Parameters

      • const T extends string

      Parameters

      • value: T

        The enum member (e.g. "DESC", "DATE")

      Returns GraphQLEnum<T>

      A marker the query builder serializes without quotes

      await pnwkit.queries.bulletins()
      .select("id", "title")
      .where({ orderBy: { column: Enum("DATE"), order: Enum("DESC") } })
      .execute();