hapi-graphql-boilerplate
hapi-graphql-boilerplate copied to clipboard
flow check fails
trafficstars
Running on node 7.10.0 and flow check fails with
app/api/graphql/userLoaders.js:9
9: new Dataloader(async (ids: Array<string>): any => {
^ constructor call
8: (fieldName: string, schema: Object): Function =>
^^^^^^^^ function type. Callable signature not found in
9: new Dataloader(async (ids: Array<string>): any => {
^ DataLoader
and that's well beyond my js skills level... 😕
just replace your graphql/userLoaders.js line 8
(fieldName: string, schema: Object): Function =>
to
(fieldName: string, schema: Object) =>