@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.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3736,6 +3736,8 @@ function buildDataValue(data) {
|
|
|
3736
3736
|
function formatGraphQLValue(value) {
|
|
3737
3737
|
if (value === null) return "null";
|
|
3738
3738
|
if (typeof value === "string") {
|
|
3739
|
+
if (value.startsWith("$")) return value;
|
|
3740
|
+
if (/^[A-Z_]+$/.test(value)) return value;
|
|
3739
3741
|
return JSON.stringify(value);
|
|
3740
3742
|
}
|
|
3741
3743
|
if (typeof value === "number" || typeof value === "boolean") {
|