How to use the amplify-graphql-docs-generator.default function in amplify-graphql-docs-generator

To help you get started, we’ve selected a few amplify-graphql-docs-generator 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 awslabs / aws-amplify-serverless-plugin / index.js View on Github external
getTemporaryOperationsFile(resource, schemaFile) {
        const operationsFile = path.join('.serverless', 'amplify-operations.graphql');
        graphqlGenerator(schemaFile, operationsFile, { language: 'graphql' });
        return operationsFile;
    }
github awslabs / aws-amplify-serverless-plugin / index.js View on Github external
writeGraphQLOperations(resources, fileDetails) {
        const resource = resources.find(r => r.ResourceType === 'AWS::AppSync::GraphQLApi');
        if (resource) {
            const schemaFile = this.getTemporarySchemaFile(resource);
            graphqlGenerator(schemaFile, fileDetails.filename, { language: 'graphql' });
        } else {
            throw new Error(`No GraphQL API found - cannot write ${fileDetails.filename} file`);
        }
    }

amplify-graphql-docs-generator

amplify graphql docs generator plugin

Apache-2.0
Latest version published 4 years ago

Package Health Score

78 / 100
Full package analysis