How to use the graphql-config-utilities.getGraphQLProjects function in graphql-config-utilities

To help you get started, we’ve selected a few graphql-config-utilities examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Shopify / graphql-tools-web / packages / graphql-validate-fixtures / src / index.ts View on Github external
export async function evaluateFixtures(
  fixturePaths: string[],
  {cwd}: Options,
): Promise {
  const config = getGraphQLConfig(resolve(cwd));

  const projectASTCollection = await Promise.all(
    getGraphQLProjects(config).map(getOperationsForProject),
  );

  return runForEachFixture(fixturePaths, (fixture) =>
    evaluateFixture(fixture, projectASTCollection),
  );
}

graphql-config-utilities

Common utilities for graphql-config

MIT
Latest version published 5 months ago

Package Health Score

56 / 100
Full package analysis

Similar packages