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.