Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit f242a61

Browse files
committed
closes #8
1 parent 00b16e8 commit f242a61

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

graphql/core/execute.lua

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,9 @@ local function shouldIncludeNode(selection, context)
4747
end
4848

4949
local function doesFragmentApply(fragment, type, context)
50-
51-
--print('print from doesFragmentApply - 51')
52-
--print('fragment')
53-
--require('pl.pretty').dump(fragment)
54-
5550
if not fragment.typeCondition then return true end
5651

5752
local innerType = typeFromAST(fragment.typeCondition, context.schema)
58-
--print('innerType')
59-
--require('pl.pretty').dump(innerType)
6053

6154
if innerType == type then
6255
return true
@@ -163,13 +156,6 @@ local function completeValue(fieldType, result, subSelections, context)
163156
local completedResult = completeValue(innerType, result, subSelections, context)
164157

165158
if completedResult == nil then
166-
--@todo remove comments
167-
--print('print from completeValue')
168-
--print('result')
169-
--require('pl.pretty').dump(result)
170-
--print('fieldType')
171-
--require('pl.pretty').dump(fieldType)
172-
173159
error('No value provided for non-null ' .. (innerType.name or innerType.__type))
174160
end
175161

@@ -189,15 +175,6 @@ local function completeValue(fieldType, result, subSelections, context)
189175

190176
local values = {}
191177
for i, value in ipairs(result) do
192-
--@todo remove comments
193-
--print('print for ipairs(result) 195')
194-
--require('pl.pretty').dump(result)
195-
--print('value')
196-
--require('pl.pretty').dump(value)
197-
--print('subSelections')
198-
--require('pl.pretty').dump(subSelections)
199-
200-
201178
values[i] = completeValue(innerType, value, subSelections, context)
202179
end
203180

@@ -223,11 +200,6 @@ local function getFieldEntry(objectType, object, fields, context)
223200
local firstField = fields[1]
224201
local fieldName = firstField.name.value
225202
local responseKey = getFieldResponseKey(firstField)
226-
--print('print from getFieldEntry')
227-
--print('objectType')
228-
--require('pl.pretty').dump(objectType)
229-
--print('object itself')
230-
--require('pl.pretty').dump(object)
231203
local fieldType = introspection.fieldMap[fieldName] or objectType.fields[fieldName]
232204

233205
if fieldType == nil then
@@ -264,16 +236,6 @@ local function getFieldEntry(objectType, object, fields, context)
264236
end
265237

266238
evaluateSelections = function(objectType, object, selections, context)
267-
268-
--@todo remove debug
269-
--print('EVALUETE SELECTIONS')
270-
----print('objectType')
271-
----require('pl.pretty').dump(objectType)
272-
--print('object')
273-
--require('pl.pretty').dump(object)
274-
--
275-
--print('EVALUETE SELECTIONS CLOSE')
276-
277239
local groupedFieldSet = collectFields(objectType, selections, {}, {}, context)
278240

279241
return util.map(groupedFieldSet, function(fields)

0 commit comments

Comments
 (0)