Wrap a value as a GraphQL enum so it is emitted unquoted in the query.
The enum member (e.g. "DESC", "DATE")
"DESC"
"DATE"
A marker the query builder serializes without quotes
await pnwkit.queries.bulletins() .select("id", "title") .where({ orderBy: { column: Enum("DATE"), order: Enum("DESC") } }) .execute(); Copy
await pnwkit.queries.bulletins() .select("id", "title") .where({ orderBy: { column: Enum("DATE"), order: Enum("DESC") } }) .execute();
Wrap a value as a GraphQL enum so it is emitted unquoted in the query.