hapi-graphql-boilerplate icon indicating copy to clipboard operation
hapi-graphql-boilerplate copied to clipboard

flow check fails

Open ejeklint opened this issue 8 years ago • 1 comments
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... 😕

ejeklint avatar May 30 '17 08:05 ejeklint

just replace your graphql/userLoaders.js line 8 (fieldName: string, schema: Object): Function => to (fieldName: string, schema: Object) =>

tweikiang avatar Aug 17 '17 06:08 tweikiang