How to use the graphql-auth-transformer.default function in graphql-auth-transformer

To help you get started, we’ve selected a few graphql-auth-transformer 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 aws-amplify / amplify-cli / packages / graphql-transform-cli / lib / commands / compile.js View on Github external
execute(schemaFile, output) {
        const transformer = new graphql_transform_1.default({
            transformers: [
                new graphql_appsync_transformer_1.default(),
                new graphql_dynamodb_transformer_1.default(),
                new graphql_auth_transformer_1.default()
            ]
        });
        const cfdoc = transformer.transform(schemaFile.readSync());
        output.writeSync(JSON.stringify(cfdoc, null, 4));
    }
};

graphql-auth-transformer

Implements the @auth directive for the appsync model transform.

Apache-2.0
Latest version published 5 months ago

Package Health Score

89 / 100
Full package analysis