Skip to content

Commit f3986b2

Browse files
authored
Update transformer.js
1 parent 98b39ba commit f3986b2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

transformer.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function objectValueParse(obj) {
123123
}
124124

125125
function parseObjectType(obj, name, def) {
126-
if (obj === "DateTime" || obj === "List" || obj === "String" || obj === "ID" || obj === "Boolean" || obj === "Int" || obj === "Float") {
126+
if (obj === "DateTime" || obj === "List" || obj === "String" || obj === "ID" || obj === "Boolean" || obj === "Long" || obj === "BigInt" || obj === "Int" || obj === "Float") {
127127
obj = { Name: name, Value: obj, isScalarType: true }
128128
obj = generateRandomValue(obj)
129129
} else {
@@ -256,6 +256,12 @@ function generateRandomValue(obj) {
256256
} else if (obj.Value === "Int") {
257257
obj.isIntType = true
258258
obj.Default = randomInteger(0, 9999)
259+
} else if (obj.Value === "Long") {
260+
obj.isIntType = true
261+
obj.Default = randomInteger(0, 99999999)
262+
} else if (obj.Value === "BigInt") {
263+
obj.isIntType = true
264+
obj.Default = randomInteger(0, 999999999999)
259265
} else if (obj.Value === "Float") {
260266
obj.Default = randomNumber(0, 9999)
261267
obj.isFloatType = true

0 commit comments

Comments
 (0)