npx @raydeck/merge-graphql [options]
- -o --output <
path-to-schema.graphql
> File to emit results to (default:/Users/ray/Documents/GitHub/merge-graphql/schema.graphql
) - -p --path <
path-to-workspace
> Path to workspace (default:/Users/ray/Documents/GitHub/merge-graphql
)
▸ mergeDependencies(startPath
: string): Promise‹string›
Defined in index.ts:11
Extract and merge graphql schemas from dependencies into a single string.
Gets all from schemas/common and then just the ones for your project (identified in schemas/{name})
Parameters:
Name | Type | Default | Description |
---|---|---|---|
startPath |
string | process.cwd() | Path to start looking at package.json and associated node_modules |
Returns: Promise‹string›
▸ mergeFromGlobs(globs
: string[]): Promise‹string›
Defined in index.ts:36
Merge schema files found in an array of glob strings into a single schema file
Parameters:
Name | Type | Description |
---|---|---|
globs |
string[] | array of glob strings (ex: ./schemas/*.graphql) |
Returns: Promise‹string›