@ctil/gql 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -969,6 +969,8 @@ function buildDataValue(data) {
969
969
  function formatGraphQLValue(value) {
970
970
  if (value === null) return "null";
971
971
  if (typeof value === "string") {
972
+ if (value.startsWith("$")) return value;
973
+ if (/^[A-Z_]+$/.test(value)) return value;
972
974
  return JSON.stringify(value);
973
975
  }
974
976
  if (typeof value === "number" || typeof value === "boolean") {