Minor Changes
-
a0950ac: Breaking Change:
-
Now you can set a global
customFetch
instead of settingcustomFetch
individually for each handler.customFetch
configuration field for each handler will no longer work. And alsocustomFetch
needs to be the path of the code file that exports the function asdefault
.moduleName#exportName
is not supported for now. -
While programmatically creating the handlers, now you also need
fetchFn
to be passed to the constructor;
new GraphQLHandler({ ..., fetchFn: myFetchFn, })
readFileOrUrl
's secondconfig
parameter is now required. Also this second parameter should take an object withcwd
,importFn
,fetch
andlogger
. You can see the diff of handler's codes as an example.
-
Patch Changes
- @graphql-mesh/store@0.8.17