Open pengx17 opened 4 years ago
The TypeScript definitions for inputObjectType gives false result for default when using it as a list.
inputObjectType
default
export const Bar = inputObjectType({ name: 'Bar', definition(t) { t.string('someField'); }, }); export const getFoo = queryField('getFoo', { type: 'String', args: { bar: arg({ type: 'Bar', list: true, default: [], <<< Error }), }, });
Screenshot
Description
The TypeScript definitions for
inputObjectType
gives false result fordefault
when using it as a list.Repro