Skip to content

Commit 60287ca

Browse files
committed
Fix damaging schema
Remove forcing defaultValue on directiveMap generation because it leads to adding redundant defaultValue field to Scalars itself into typeMap: { "typeMap": { "Int": { "defaultValue": 1, <- ERROR "parseLiteral": "function: 0x415a8fe8", "__type": "Scalar", "nonNull": {}, "serialize": "function: 0x415a8ed8", "isValueOfTheType": "function: 0x415a8e98", "name": "Int", "description": "..." } } }
1 parent b8f86bc commit 60287ca

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

graphql/schema.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ function schema:generateDirectiveMap()
117117
if argumentType == nil then
118118
error('Must supply type for argument "' .. name .. '" on "' .. directive.name .. '"')
119119
end
120-
argumentType.defaultValue = argument.defaultValue
121120
self:generateTypeMap(argumentType)
122121
end
123122
end

0 commit comments

Comments
 (0)