This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@eddeee888/gcg-typescript-resolver-files@0.4.0
Minor Changes
037afdc: Add resolverMainFileMode. merged or modules (Default: merged)
How to generate file/s that put resolvers map together:
merged: one file
modules: one file per module. This can be used with module-based libraries like graphql-modules
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@eddeee888/gcg-typescript-resolver-files@0.4.0
Minor Changes
037afdc: Add resolverMainFileMode.
merged
ormodules
(Default:merged
)How to generate file/s that put resolvers map together:
merged
: one filemodules
: one file per module. This can be used with module-based libraries like graphql-modulesExample codegen config:
resolverMainFileMode=modules
generates oneresolvers.generated.ts
file in each module:If you are using
graphql-modules
, you can use the resolvers map like this:df06e3b: Add typeDefsFileMode.
merged
ormergedWhitelisted
ormodules
(Default:merged
)How to generate typeDefs file/s:
merged
: one filemergedWhitelisted
: one file but only contains whitelisted modules. This is useful if your blacklisted modules handle their own type defsmodules
: one file per module. This can be used with module-based libraries like graphql-modulesExample codegen config:
typeDefsFileMode=modules
generates onetypeDefs.generated.ts
file in each module:If you are using
graphql-modules
, you can use the resolvers map like this:086802e: Add
defineConfig
. This sets uppreset
,presetConfig
andwatchPattern
.Example:
Patch Changes
type TypeA = TypeB & { something: string } & { somethingelse: string }