Henry
03/11/2019, 7:13 PMexport const contacts = extendType({
    type: 'Query',
    definition(t) {
        t.list.field('contacts', {
            type: 'Contact',
            resolve: (parent, args, ctx) => { ... },
        })
    },
})
That I wish to shorten tosomething like the following:
export const contacts = queryField('contacts', {
    type: 'Contact', // list?
    resolve: (parent, args, ctx) => { ... },
})weakky
03/11/2019, 7:15 PMexport const contacts = queryField('contacts', {
    type: 'Contact', // list?
    list: true,
    resolve: (parent, args, ctx) => { ... },
})Henry
03/11/2019, 7:16 PMweakky
03/11/2019, 7:16 PMt.list.field is a shortcut for list: true