@graphql-workspaces/load

This module is a wrapper around the load-files and merge modules from graphql-tools.

Usage no npm install needed!

<script type="module">
  import graphqlWorkspacesLoad from 'https://cdn.skypack.dev/@graphql-workspaces/load';
</script>

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.