Lennard Westerveld
11/16/2020, 6:45 PMobjectType({
name: 'TestQuery',
definition(t) {
t.field('hello', {type: 'String'});
t.field('hello2', {type: 'String'});
},
}),
extendType({
type: 'Query',
definition(t) {
t.field('test', {
type: 'TestQuery',
resolve: () => ({
hello: () => ... function that returns promise<String>,
hello2: () => ... function that returns promise<String>,
}),
});
},
}),
Gives the following Message
Error:(73, 13) TS2322: Type '() => Promise<string>' is not assignable to type 'string'.
Luc
11/16/2020, 7:12 PMLennard Westerveld
11/16/2020, 7:13 PM