@graphql-workspaces/load
v1.0.15
Published
This module is a wrapper around the load-files and merge modules from graphql-tools.
Downloads
11
Maintainers
Readme
GraphQL Workspaces
This module is used to support loading GraphQL file contents in @graphql-workspaces/cli.
Motivation
There are two exports, loadWorkspace and loadWorkspaceSync, both of which are wrappers around load-files and merge modules from graphql-tools. This configuration is passed to loadFiles, with the requireMethod option defining a custom function that uses esm to support loading from CommonJS or ES Modules. This enables complex composition strategies by processing nested template literals when using the gql tag.
