1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.CoreDirective = void 0;
|
4 | const graphql_1 = require("graphql");
|
5 | const CorePurpose = new graphql_1.GraphQLEnumType({
|
6 | name: 'core__Purpose',
|
7 | values: {
|
8 | EXECUTION: {
|
9 | description: '`EXECUTION` features provide metadata necessary to for operation execution.',
|
10 | },
|
11 | SECURITY: {
|
12 | description: '`SECURITY` features provide metadata necessary to securely resolve fields.',
|
13 | },
|
14 | },
|
15 | });
|
16 | exports.CoreDirective = new graphql_1.GraphQLDirective({
|
17 | name: 'core',
|
18 | locations: [graphql_1.DirectiveLocation.SCHEMA],
|
19 | args: {
|
20 | feature: {
|
21 | type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLString),
|
22 | },
|
23 | as: {
|
24 | type: graphql_1.GraphQLString,
|
25 | },
|
26 | for: {
|
27 | type: CorePurpose,
|
28 | },
|
29 | },
|
30 | isRepeatable: true,
|
31 | });
|
32 |
|
\ | No newline at end of file |