UNPKG

1.3 kBTypeScriptView Raw
1import { GraphQLDirective, GraphQLScalarType } from 'graphql';
2import { FieldMiddleware } from './field-middleware.interface';
3export type DateScalarMode = 'isoDate' | 'timestamp';
4export type NumberScalarMode = 'float' | 'integer';
5export interface ScalarsTypeMap {
6 type: Function;
7 scalar: GraphQLScalarType;
8}
9export interface BuildSchemaOptions {
10 /**
11 * Date scalar mode
12 * @default 'isoDate'
13 */
14 dateScalarMode?: DateScalarMode;
15 /**
16 * Number scalar mode
17 * @default 'float'
18 */
19 numberScalarMode?: NumberScalarMode;
20 /**
21 * Scalars map
22 */
23 scalarsMap?: ScalarsTypeMap[];
24 /**
25 * Orphaned type classes/enums that are not explicitly used in GraphQL types definitions
26 */
27 orphanedTypes?: (Function | object)[];
28 /**
29 * Disable checking on build the correctness of a schema
30 */
31 skipCheck?: boolean;
32 /**
33 * GraphQL directives
34 */
35 directives?: GraphQLDirective[];
36 /**
37 * Array of global field middleware functions
38 */
39 fieldMiddleware?: FieldMiddleware[];
40 /**
41 * Set to true if it should throw an error when the same Query / Mutation field is defined more than once
42 */
43 noDuplicatedFields?: boolean;
44}
45//# sourceMappingURL=build-schema-options.interface.d.ts.map
\No newline at end of file