@aws-amplify/graphql-directives
Version:
Directive definitions for Amplify GraphQL transformers.
25 lines (23 loc) • 584 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IndexDirective = void 0;
const name = 'index';
const definition = `
directive @${name}(name: String, sortKeyFields: [String], queryField: String, projection: ProjectionInput) repeatable on FIELD_DEFINITION
input ProjectionInput {
type: ProjectionType
nonKeyAttributes: [String]
}
enum ProjectionType {
ALL
KEYS_ONLY
INCLUDE
}
`;
const defaults = {};
exports.IndexDirective = {
name,
definition,
defaults,
};
//# sourceMappingURL=index-directive.js.map