@cosmneo/onion-lasagna 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-XWKHOLIP.js → chunk-4HMXTGHK.js} +2 -2
- package/dist/chunk-4RFWJ5XZ.js +192 -0
- package/dist/chunk-4RFWJ5XZ.js.map +1 -0
- package/dist/{chunk-4BVOLXDJ.js → chunk-4YBAV6LZ.js} +2 -2
- package/dist/chunk-ANLXZHUS.js +230 -0
- package/dist/chunk-ANLXZHUS.js.map +1 -0
- package/dist/chunk-BG2FY27M.js +36 -0
- package/dist/chunk-BG2FY27M.js.map +1 -0
- package/dist/chunk-FEY2GSVT.js +1 -0
- package/dist/chunk-FEY2GSVT.js.map +1 -0
- package/dist/{chunk-2BVCU32G.js → chunk-HNEAH6OZ.js} +121 -2
- package/dist/chunk-HNEAH6OZ.js.map +1 -0
- package/dist/chunk-NQMFWI6Q.js +1 -0
- package/dist/chunk-NQMFWI6Q.js.map +1 -0
- package/dist/chunk-TZRBETT3.js +127 -0
- package/dist/chunk-TZRBETT3.js.map +1 -0
- package/dist/{chunk-MF2JDREK.js → chunk-UNVB4INM.js} +1 -1
- package/dist/{chunk-MF2JDREK.js.map → chunk-UNVB4INM.js.map} +1 -1
- package/dist/chunk-VBG3UYQR.js +119 -0
- package/dist/chunk-VBG3UYQR.js.map +1 -0
- package/dist/events/index.js +3 -4
- package/dist/events/server/index.js +3 -4
- package/dist/events/shared/index.js +2 -3
- package/dist/graphql/field/index.cjs +189 -0
- package/dist/graphql/field/index.cjs.map +1 -0
- package/dist/graphql/field/index.d.cts +214 -0
- package/dist/graphql/field/index.d.ts +214 -0
- package/dist/graphql/field/index.js +25 -0
- package/dist/graphql/field/index.js.map +1 -0
- package/dist/graphql/index.cjs +1148 -0
- package/dist/graphql/index.cjs.map +1 -0
- package/dist/graphql/index.d.cts +8 -0
- package/dist/graphql/index.d.ts +8 -0
- package/dist/graphql/index.js +49 -0
- package/dist/graphql/index.js.map +1 -0
- package/dist/graphql/sdl/index.cjs +241 -0
- package/dist/graphql/sdl/index.cjs.map +1 -0
- package/dist/graphql/sdl/index.d.cts +77 -0
- package/dist/graphql/sdl/index.d.ts +77 -0
- package/dist/graphql/sdl/index.js +8 -0
- package/dist/graphql/sdl/index.js.map +1 -0
- package/dist/graphql/server/index.cjs +505 -0
- package/dist/graphql/server/index.cjs.map +1 -0
- package/dist/graphql/server/index.d.cts +268 -0
- package/dist/graphql/server/index.d.ts +268 -0
- package/dist/graphql/server/index.js +15 -0
- package/dist/graphql/server/index.js.map +1 -0
- package/dist/graphql/shared/index.cjs +586 -0
- package/dist/graphql/shared/index.cjs.map +1 -0
- package/dist/graphql/shared/index.d.cts +82 -0
- package/dist/graphql/shared/index.d.ts +82 -0
- package/dist/graphql/shared/index.js +16 -0
- package/dist/graphql/shared/index.js.map +1 -0
- package/dist/http/index.cjs.map +1 -1
- package/dist/http/index.js +2 -3
- package/dist/http/route/index.cjs.map +1 -1
- package/dist/http/route/index.d.cts +4 -0
- package/dist/http/route/index.d.ts +4 -0
- package/dist/http/route/index.js +1 -1
- package/dist/http/shared/index.js +1 -2
- package/dist/index.cjs +672 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +43 -1
- package/dist/index.js.map +1 -1
- package/dist/schema-definition.type-C9PntBVc.d.cts +166 -0
- package/dist/schema-definition.type-CuhQLDr0.d.ts +166 -0
- package/package.json +31 -1
- package/dist/chunk-2BVCU32G.js.map +0 -1
- package/dist/chunk-H5TNDC5U.js +0 -138
- package/dist/chunk-H5TNDC5U.js.map +0 -1
- /package/dist/{chunk-XWKHOLIP.js.map → chunk-4HMXTGHK.js.map} +0 -0
- /package/dist/{chunk-4BVOLXDJ.js.map → chunk-4YBAV6LZ.js.map} +0 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { SchemaAdapter, InferOutput } from '../../http/schema/types.cjs';
|
|
2
|
+
import { b as GraphQLFieldDefinition, d as GraphQLSchemaConfig, e as GraphQLSchemaDefaults, f as GraphQLSchemaDefinition, D as DeepMergeSchemas, h as DeepMergeSchemasAll } from '../../schema-definition.type-C9PntBVc.cjs';
|
|
3
|
+
export { F as FlattenSchema, g as GetField, a as GraphQLFieldDocumentation, G as GraphQLOperationType, c as GraphQLSchemaEntry, k as InferFieldContext, i as InferFieldInput, I as InferFieldOperation, j as InferFieldOutput, S as SchemaKeys, n as collectFields, l as isFieldDefinition, m as isSchemaDefinition } from '../../schema-definition.type-C9PntBVc.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @fileoverview Factory functions for creating GraphQL field definitions.
|
|
7
|
+
*
|
|
8
|
+
* `defineQuery`, `defineMutation`, and `defineSubscription` are the main entry
|
|
9
|
+
* points for defining GraphQL fields. They mirror `defineRoute` /
|
|
10
|
+
* `defineEventHandler` from the HTTP and event layers.
|
|
11
|
+
*
|
|
12
|
+
* @module graphql/field/define-field
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Input for defineQuery / defineMutation.
|
|
17
|
+
*
|
|
18
|
+
* @example Query with input and output
|
|
19
|
+
* ```typescript
|
|
20
|
+
* defineQuery({
|
|
21
|
+
* input: zodSchema(z.object({ userId: z.string() })),
|
|
22
|
+
* output: zodSchema(userSchema),
|
|
23
|
+
* docs: { description: 'Get a user by ID' },
|
|
24
|
+
* })
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @example Mutation with context
|
|
28
|
+
* ```typescript
|
|
29
|
+
* defineMutation({
|
|
30
|
+
* input: zodSchema(z.object({ name: z.string() })),
|
|
31
|
+
* output: zodSchema(z.object({ id: z.string() })),
|
|
32
|
+
* context: zodSchema(executionContextSchema),
|
|
33
|
+
* docs: { description: 'Create a project' },
|
|
34
|
+
* })
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
interface DefineFieldInput<TInput extends SchemaAdapter | undefined = undefined, TOutput extends SchemaAdapter | undefined = undefined, TContext extends SchemaAdapter | undefined = undefined> {
|
|
38
|
+
/** Input arguments validation schema. */
|
|
39
|
+
readonly input?: TInput;
|
|
40
|
+
/** Output type validation schema. */
|
|
41
|
+
readonly output?: TOutput;
|
|
42
|
+
/** Context validation schema (e.g., JWT payload from middleware). */
|
|
43
|
+
readonly context?: TContext;
|
|
44
|
+
/** Field documentation. */
|
|
45
|
+
readonly docs?: {
|
|
46
|
+
readonly summary?: string;
|
|
47
|
+
readonly description?: string;
|
|
48
|
+
readonly tags?: readonly string[];
|
|
49
|
+
readonly deprecated?: boolean;
|
|
50
|
+
readonly deprecationReason?: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
type ResolveInput<T> = T extends SchemaAdapter ? InferOutput<T> : undefined;
|
|
54
|
+
type ResolveOutput<T> = T extends SchemaAdapter ? InferOutput<T> : undefined;
|
|
55
|
+
type ResolveContext<T> = T extends SchemaAdapter ? InferOutput<T> : undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Creates a GraphQL query field definition.
|
|
58
|
+
*
|
|
59
|
+
* @param config - Field configuration with optional schemas
|
|
60
|
+
* @returns A frozen GraphQLFieldDefinition with operation 'query'
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```typescript
|
|
64
|
+
* const getUser = defineQuery({
|
|
65
|
+
* input: zodSchema(z.object({ userId: z.string() })),
|
|
66
|
+
* output: zodSchema(userSchema),
|
|
67
|
+
* docs: { description: 'Get a user by ID' },
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
declare function defineQuery<TInput extends SchemaAdapter | undefined = undefined, TOutput extends SchemaAdapter | undefined = undefined, TContext extends SchemaAdapter | undefined = undefined>(config?: DefineFieldInput<TInput, TOutput, TContext>): GraphQLFieldDefinition<'query', ResolveInput<TInput>, ResolveOutput<TOutput>, ResolveContext<TContext>>;
|
|
72
|
+
/**
|
|
73
|
+
* Creates a GraphQL mutation field definition.
|
|
74
|
+
*
|
|
75
|
+
* @param config - Field configuration with optional schemas
|
|
76
|
+
* @returns A frozen GraphQLFieldDefinition with operation 'mutation'
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```typescript
|
|
80
|
+
* const createProject = defineMutation({
|
|
81
|
+
* input: zodSchema(z.object({ name: z.string() })),
|
|
82
|
+
* output: zodSchema(z.object({ id: z.string() })),
|
|
83
|
+
* context: zodSchema(executionContextSchema),
|
|
84
|
+
* docs: { description: 'Create a new project' },
|
|
85
|
+
* });
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
declare function defineMutation<TInput extends SchemaAdapter | undefined = undefined, TOutput extends SchemaAdapter | undefined = undefined, TContext extends SchemaAdapter | undefined = undefined>(config?: DefineFieldInput<TInput, TOutput, TContext>): GraphQLFieldDefinition<'mutation', ResolveInput<TInput>, ResolveOutput<TOutput>, ResolveContext<TContext>>;
|
|
89
|
+
/**
|
|
90
|
+
* Creates a GraphQL subscription field definition.
|
|
91
|
+
*
|
|
92
|
+
* Subscription handlers return an `AsyncIterable` of values rather than
|
|
93
|
+
* a single response. The output schema validates each emitted value.
|
|
94
|
+
*
|
|
95
|
+
* @param config - Field configuration with optional schemas
|
|
96
|
+
* @returns A frozen GraphQLFieldDefinition with operation 'subscription'
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```typescript
|
|
100
|
+
* const onTicketCreated = defineSubscription({
|
|
101
|
+
* input: zodSchema(z.object({ projectId: z.string() })),
|
|
102
|
+
* output: zodSchema(ticketSchema),
|
|
103
|
+
* docs: { description: 'Subscribe to new tickets in a project' },
|
|
104
|
+
* });
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
declare function defineSubscription<TInput extends SchemaAdapter | undefined = undefined, TOutput extends SchemaAdapter | undefined = undefined, TContext extends SchemaAdapter | undefined = undefined>(config?: DefineFieldInput<TInput, TOutput, TContext>): GraphQLFieldDefinition<'subscription', ResolveInput<TInput>, ResolveOutput<TOutput>, ResolveContext<TContext>>;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @fileoverview Factory function for creating GraphQL schema definitions.
|
|
111
|
+
*
|
|
112
|
+
* The `defineGraphQLSchema` function groups fields into a hierarchical structure
|
|
113
|
+
* with optional schema-level defaults for context and tags.
|
|
114
|
+
*
|
|
115
|
+
* @module graphql/field/define-schema
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Options for schema definition.
|
|
120
|
+
*/
|
|
121
|
+
interface DefineGraphQLSchemaOptions {
|
|
122
|
+
/**
|
|
123
|
+
* Default values applied to all child fields.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```typescript
|
|
127
|
+
* defineGraphQLSchema({
|
|
128
|
+
* getUser: getUserQuery,
|
|
129
|
+
* createUser: createUserMutation,
|
|
130
|
+
* }, {
|
|
131
|
+
* defaults: {
|
|
132
|
+
* context: zodSchema(executionContextSchema),
|
|
133
|
+
* tags: ['Users'],
|
|
134
|
+
* },
|
|
135
|
+
* })
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
readonly defaults?: GraphQLSchemaDefaults;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Creates a GraphQL schema definition from a configuration object.
|
|
142
|
+
*
|
|
143
|
+
* A schema is a hierarchical grouping of fields that provides:
|
|
144
|
+
* - Organized API structure with nested namespaces
|
|
145
|
+
* - Type-safe resolver registration
|
|
146
|
+
* - Schema-level defaults for context and tags
|
|
147
|
+
*
|
|
148
|
+
* @param fields - Object containing fields and nested groups
|
|
149
|
+
* @param options - Optional schema configuration
|
|
150
|
+
* @returns A frozen GraphQLSchemaDefinition object
|
|
151
|
+
*
|
|
152
|
+
* @example Basic schema
|
|
153
|
+
* ```typescript
|
|
154
|
+
* const schema = defineGraphQLSchema({
|
|
155
|
+
* users: {
|
|
156
|
+
* get: getUserQuery,
|
|
157
|
+
* list: listUsersQuery,
|
|
158
|
+
* create: createUserMutation,
|
|
159
|
+
* },
|
|
160
|
+
* });
|
|
161
|
+
* ```
|
|
162
|
+
*
|
|
163
|
+
* @example With defaults
|
|
164
|
+
* ```typescript
|
|
165
|
+
* const schema = defineGraphQLSchema({
|
|
166
|
+
* get: getUserQuery,
|
|
167
|
+
* list: listUsersQuery,
|
|
168
|
+
* }, {
|
|
169
|
+
* defaults: {
|
|
170
|
+
* context: zodSchema(executionContextSchema),
|
|
171
|
+
* tags: ['Users'],
|
|
172
|
+
* },
|
|
173
|
+
* });
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
declare function defineGraphQLSchema<T extends GraphQLSchemaConfig>(fields: T, options?: DefineGraphQLSchemaOptions): GraphQLSchemaDefinition<T>;
|
|
177
|
+
type SchemaInput<T extends GraphQLSchemaConfig> = T | GraphQLSchemaDefinition<T>;
|
|
178
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>): GraphQLSchemaDefinition<DeepMergeSchemas<T1, T2>>;
|
|
179
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>): GraphQLSchemaDefinition<DeepMergeSchemasAll<[T1, T2, T3]>>;
|
|
180
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>): GraphQLSchemaDefinition<DeepMergeSchemasAll<[T1, T2, T3, T4]>>;
|
|
181
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>): GraphQLSchemaDefinition<DeepMergeSchemasAll<[T1, T2, T3, T4, T5]>>;
|
|
182
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig, T6 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>, s6: SchemaInput<T6>): GraphQLSchemaDefinition<DeepMergeSchemasAll<[T1, T2, T3, T4, T5, T6]>>;
|
|
183
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig, T6 extends GraphQLSchemaConfig, T7 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>, s6: SchemaInput<T6>, s7: SchemaInput<T7>): GraphQLSchemaDefinition<DeepMergeSchemasAll<[T1, T2, T3, T4, T5, T6, T7]>>;
|
|
184
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig, T6 extends GraphQLSchemaConfig, T7 extends GraphQLSchemaConfig, T8 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>, s6: SchemaInput<T6>, s7: SchemaInput<T7>, s8: SchemaInput<T8>): GraphQLSchemaDefinition<DeepMergeSchemasAll<[T1, T2, T3, T4, T5, T6, T7, T8]>>;
|
|
185
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig, T6 extends GraphQLSchemaConfig, T7 extends GraphQLSchemaConfig, T8 extends GraphQLSchemaConfig, T9 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>, s6: SchemaInput<T6>, s7: SchemaInput<T7>, s8: SchemaInput<T8>, s9: SchemaInput<T9>): GraphQLSchemaDefinition<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<T1, T2>, T3>, T4>, T5>, T6>, T7>, T8>, T9>>;
|
|
186
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig, T6 extends GraphQLSchemaConfig, T7 extends GraphQLSchemaConfig, T8 extends GraphQLSchemaConfig, T9 extends GraphQLSchemaConfig, T10 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>, s6: SchemaInput<T6>, s7: SchemaInput<T7>, s8: SchemaInput<T8>, s9: SchemaInput<T9>, s10: SchemaInput<T10>): GraphQLSchemaDefinition<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<T1, T2>, T3>, T4>, T5>, T6>, T7>, T8>, T9>, T10>>;
|
|
187
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig, T6 extends GraphQLSchemaConfig, T7 extends GraphQLSchemaConfig, T8 extends GraphQLSchemaConfig, T9 extends GraphQLSchemaConfig, T10 extends GraphQLSchemaConfig, T11 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>, s6: SchemaInput<T6>, s7: SchemaInput<T7>, s8: SchemaInput<T8>, s9: SchemaInput<T9>, s10: SchemaInput<T10>, s11: SchemaInput<T11>): GraphQLSchemaDefinition<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<T1, T2>, T3>, T4>, T5>, T6>, T7>, T8>, T9>, T10>, T11>>;
|
|
188
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig, T6 extends GraphQLSchemaConfig, T7 extends GraphQLSchemaConfig, T8 extends GraphQLSchemaConfig, T9 extends GraphQLSchemaConfig, T10 extends GraphQLSchemaConfig, T11 extends GraphQLSchemaConfig, T12 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>, s6: SchemaInput<T6>, s7: SchemaInput<T7>, s8: SchemaInput<T8>, s9: SchemaInput<T9>, s10: SchemaInput<T10>, s11: SchemaInput<T11>, s12: SchemaInput<T12>): GraphQLSchemaDefinition<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<T1, T2>, T3>, T4>, T5>, T6>, T7>, T8>, T9>, T10>, T11>, T12>>;
|
|
189
|
+
declare function mergeGraphQLSchemas(...schemas: SchemaInput<GraphQLSchemaConfig>[]): GraphQLSchemaDefinition<GraphQLSchemaConfig>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @fileoverview GraphQL field utility functions.
|
|
193
|
+
*
|
|
194
|
+
* @module graphql/field/utils
|
|
195
|
+
*/
|
|
196
|
+
/**
|
|
197
|
+
* Generates a field ID from a schema key path.
|
|
198
|
+
*
|
|
199
|
+
* This is the **single source of truth** for the naming convention used across:
|
|
200
|
+
* - SDL generation (`type Query { usersGet(...) }`)
|
|
201
|
+
* - Yoga resolver map keys
|
|
202
|
+
* - Client query string field names
|
|
203
|
+
*
|
|
204
|
+
* Converts dotted key paths to camelCase:
|
|
205
|
+
* - `"users.get"` → `"usersGet"`
|
|
206
|
+
* - `"projects.members.list"` → `"projectsMembersList"`
|
|
207
|
+
* - `"getUser"` → `"getUser"` (single segment unchanged)
|
|
208
|
+
*
|
|
209
|
+
* @param key - The dotted schema key path
|
|
210
|
+
* @returns A camelCase field ID string
|
|
211
|
+
*/
|
|
212
|
+
declare function generateFieldId(key: string): string;
|
|
213
|
+
|
|
214
|
+
export { DeepMergeSchemas, DeepMergeSchemasAll, type DefineGraphQLSchemaOptions, GraphQLFieldDefinition, GraphQLSchemaConfig, GraphQLSchemaDefaults, GraphQLSchemaDefinition, defineGraphQLSchema, defineMutation, defineQuery, defineSubscription, generateFieldId, mergeGraphQLSchemas };
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { SchemaAdapter, InferOutput } from '../../http/schema/types.js';
|
|
2
|
+
import { b as GraphQLFieldDefinition, d as GraphQLSchemaConfig, e as GraphQLSchemaDefaults, f as GraphQLSchemaDefinition, D as DeepMergeSchemas, h as DeepMergeSchemasAll } from '../../schema-definition.type-CuhQLDr0.js';
|
|
3
|
+
export { F as FlattenSchema, g as GetField, a as GraphQLFieldDocumentation, G as GraphQLOperationType, c as GraphQLSchemaEntry, k as InferFieldContext, i as InferFieldInput, I as InferFieldOperation, j as InferFieldOutput, S as SchemaKeys, n as collectFields, l as isFieldDefinition, m as isSchemaDefinition } from '../../schema-definition.type-CuhQLDr0.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @fileoverview Factory functions for creating GraphQL field definitions.
|
|
7
|
+
*
|
|
8
|
+
* `defineQuery`, `defineMutation`, and `defineSubscription` are the main entry
|
|
9
|
+
* points for defining GraphQL fields. They mirror `defineRoute` /
|
|
10
|
+
* `defineEventHandler` from the HTTP and event layers.
|
|
11
|
+
*
|
|
12
|
+
* @module graphql/field/define-field
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Input for defineQuery / defineMutation.
|
|
17
|
+
*
|
|
18
|
+
* @example Query with input and output
|
|
19
|
+
* ```typescript
|
|
20
|
+
* defineQuery({
|
|
21
|
+
* input: zodSchema(z.object({ userId: z.string() })),
|
|
22
|
+
* output: zodSchema(userSchema),
|
|
23
|
+
* docs: { description: 'Get a user by ID' },
|
|
24
|
+
* })
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @example Mutation with context
|
|
28
|
+
* ```typescript
|
|
29
|
+
* defineMutation({
|
|
30
|
+
* input: zodSchema(z.object({ name: z.string() })),
|
|
31
|
+
* output: zodSchema(z.object({ id: z.string() })),
|
|
32
|
+
* context: zodSchema(executionContextSchema),
|
|
33
|
+
* docs: { description: 'Create a project' },
|
|
34
|
+
* })
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
interface DefineFieldInput<TInput extends SchemaAdapter | undefined = undefined, TOutput extends SchemaAdapter | undefined = undefined, TContext extends SchemaAdapter | undefined = undefined> {
|
|
38
|
+
/** Input arguments validation schema. */
|
|
39
|
+
readonly input?: TInput;
|
|
40
|
+
/** Output type validation schema. */
|
|
41
|
+
readonly output?: TOutput;
|
|
42
|
+
/** Context validation schema (e.g., JWT payload from middleware). */
|
|
43
|
+
readonly context?: TContext;
|
|
44
|
+
/** Field documentation. */
|
|
45
|
+
readonly docs?: {
|
|
46
|
+
readonly summary?: string;
|
|
47
|
+
readonly description?: string;
|
|
48
|
+
readonly tags?: readonly string[];
|
|
49
|
+
readonly deprecated?: boolean;
|
|
50
|
+
readonly deprecationReason?: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
type ResolveInput<T> = T extends SchemaAdapter ? InferOutput<T> : undefined;
|
|
54
|
+
type ResolveOutput<T> = T extends SchemaAdapter ? InferOutput<T> : undefined;
|
|
55
|
+
type ResolveContext<T> = T extends SchemaAdapter ? InferOutput<T> : undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Creates a GraphQL query field definition.
|
|
58
|
+
*
|
|
59
|
+
* @param config - Field configuration with optional schemas
|
|
60
|
+
* @returns A frozen GraphQLFieldDefinition with operation 'query'
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```typescript
|
|
64
|
+
* const getUser = defineQuery({
|
|
65
|
+
* input: zodSchema(z.object({ userId: z.string() })),
|
|
66
|
+
* output: zodSchema(userSchema),
|
|
67
|
+
* docs: { description: 'Get a user by ID' },
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
declare function defineQuery<TInput extends SchemaAdapter | undefined = undefined, TOutput extends SchemaAdapter | undefined = undefined, TContext extends SchemaAdapter | undefined = undefined>(config?: DefineFieldInput<TInput, TOutput, TContext>): GraphQLFieldDefinition<'query', ResolveInput<TInput>, ResolveOutput<TOutput>, ResolveContext<TContext>>;
|
|
72
|
+
/**
|
|
73
|
+
* Creates a GraphQL mutation field definition.
|
|
74
|
+
*
|
|
75
|
+
* @param config - Field configuration with optional schemas
|
|
76
|
+
* @returns A frozen GraphQLFieldDefinition with operation 'mutation'
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```typescript
|
|
80
|
+
* const createProject = defineMutation({
|
|
81
|
+
* input: zodSchema(z.object({ name: z.string() })),
|
|
82
|
+
* output: zodSchema(z.object({ id: z.string() })),
|
|
83
|
+
* context: zodSchema(executionContextSchema),
|
|
84
|
+
* docs: { description: 'Create a new project' },
|
|
85
|
+
* });
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
declare function defineMutation<TInput extends SchemaAdapter | undefined = undefined, TOutput extends SchemaAdapter | undefined = undefined, TContext extends SchemaAdapter | undefined = undefined>(config?: DefineFieldInput<TInput, TOutput, TContext>): GraphQLFieldDefinition<'mutation', ResolveInput<TInput>, ResolveOutput<TOutput>, ResolveContext<TContext>>;
|
|
89
|
+
/**
|
|
90
|
+
* Creates a GraphQL subscription field definition.
|
|
91
|
+
*
|
|
92
|
+
* Subscription handlers return an `AsyncIterable` of values rather than
|
|
93
|
+
* a single response. The output schema validates each emitted value.
|
|
94
|
+
*
|
|
95
|
+
* @param config - Field configuration with optional schemas
|
|
96
|
+
* @returns A frozen GraphQLFieldDefinition with operation 'subscription'
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```typescript
|
|
100
|
+
* const onTicketCreated = defineSubscription({
|
|
101
|
+
* input: zodSchema(z.object({ projectId: z.string() })),
|
|
102
|
+
* output: zodSchema(ticketSchema),
|
|
103
|
+
* docs: { description: 'Subscribe to new tickets in a project' },
|
|
104
|
+
* });
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
declare function defineSubscription<TInput extends SchemaAdapter | undefined = undefined, TOutput extends SchemaAdapter | undefined = undefined, TContext extends SchemaAdapter | undefined = undefined>(config?: DefineFieldInput<TInput, TOutput, TContext>): GraphQLFieldDefinition<'subscription', ResolveInput<TInput>, ResolveOutput<TOutput>, ResolveContext<TContext>>;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @fileoverview Factory function for creating GraphQL schema definitions.
|
|
111
|
+
*
|
|
112
|
+
* The `defineGraphQLSchema` function groups fields into a hierarchical structure
|
|
113
|
+
* with optional schema-level defaults for context and tags.
|
|
114
|
+
*
|
|
115
|
+
* @module graphql/field/define-schema
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Options for schema definition.
|
|
120
|
+
*/
|
|
121
|
+
interface DefineGraphQLSchemaOptions {
|
|
122
|
+
/**
|
|
123
|
+
* Default values applied to all child fields.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```typescript
|
|
127
|
+
* defineGraphQLSchema({
|
|
128
|
+
* getUser: getUserQuery,
|
|
129
|
+
* createUser: createUserMutation,
|
|
130
|
+
* }, {
|
|
131
|
+
* defaults: {
|
|
132
|
+
* context: zodSchema(executionContextSchema),
|
|
133
|
+
* tags: ['Users'],
|
|
134
|
+
* },
|
|
135
|
+
* })
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
readonly defaults?: GraphQLSchemaDefaults;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Creates a GraphQL schema definition from a configuration object.
|
|
142
|
+
*
|
|
143
|
+
* A schema is a hierarchical grouping of fields that provides:
|
|
144
|
+
* - Organized API structure with nested namespaces
|
|
145
|
+
* - Type-safe resolver registration
|
|
146
|
+
* - Schema-level defaults for context and tags
|
|
147
|
+
*
|
|
148
|
+
* @param fields - Object containing fields and nested groups
|
|
149
|
+
* @param options - Optional schema configuration
|
|
150
|
+
* @returns A frozen GraphQLSchemaDefinition object
|
|
151
|
+
*
|
|
152
|
+
* @example Basic schema
|
|
153
|
+
* ```typescript
|
|
154
|
+
* const schema = defineGraphQLSchema({
|
|
155
|
+
* users: {
|
|
156
|
+
* get: getUserQuery,
|
|
157
|
+
* list: listUsersQuery,
|
|
158
|
+
* create: createUserMutation,
|
|
159
|
+
* },
|
|
160
|
+
* });
|
|
161
|
+
* ```
|
|
162
|
+
*
|
|
163
|
+
* @example With defaults
|
|
164
|
+
* ```typescript
|
|
165
|
+
* const schema = defineGraphQLSchema({
|
|
166
|
+
* get: getUserQuery,
|
|
167
|
+
* list: listUsersQuery,
|
|
168
|
+
* }, {
|
|
169
|
+
* defaults: {
|
|
170
|
+
* context: zodSchema(executionContextSchema),
|
|
171
|
+
* tags: ['Users'],
|
|
172
|
+
* },
|
|
173
|
+
* });
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
declare function defineGraphQLSchema<T extends GraphQLSchemaConfig>(fields: T, options?: DefineGraphQLSchemaOptions): GraphQLSchemaDefinition<T>;
|
|
177
|
+
type SchemaInput<T extends GraphQLSchemaConfig> = T | GraphQLSchemaDefinition<T>;
|
|
178
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>): GraphQLSchemaDefinition<DeepMergeSchemas<T1, T2>>;
|
|
179
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>): GraphQLSchemaDefinition<DeepMergeSchemasAll<[T1, T2, T3]>>;
|
|
180
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>): GraphQLSchemaDefinition<DeepMergeSchemasAll<[T1, T2, T3, T4]>>;
|
|
181
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>): GraphQLSchemaDefinition<DeepMergeSchemasAll<[T1, T2, T3, T4, T5]>>;
|
|
182
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig, T6 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>, s6: SchemaInput<T6>): GraphQLSchemaDefinition<DeepMergeSchemasAll<[T1, T2, T3, T4, T5, T6]>>;
|
|
183
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig, T6 extends GraphQLSchemaConfig, T7 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>, s6: SchemaInput<T6>, s7: SchemaInput<T7>): GraphQLSchemaDefinition<DeepMergeSchemasAll<[T1, T2, T3, T4, T5, T6, T7]>>;
|
|
184
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig, T6 extends GraphQLSchemaConfig, T7 extends GraphQLSchemaConfig, T8 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>, s6: SchemaInput<T6>, s7: SchemaInput<T7>, s8: SchemaInput<T8>): GraphQLSchemaDefinition<DeepMergeSchemasAll<[T1, T2, T3, T4, T5, T6, T7, T8]>>;
|
|
185
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig, T6 extends GraphQLSchemaConfig, T7 extends GraphQLSchemaConfig, T8 extends GraphQLSchemaConfig, T9 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>, s6: SchemaInput<T6>, s7: SchemaInput<T7>, s8: SchemaInput<T8>, s9: SchemaInput<T9>): GraphQLSchemaDefinition<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<T1, T2>, T3>, T4>, T5>, T6>, T7>, T8>, T9>>;
|
|
186
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig, T6 extends GraphQLSchemaConfig, T7 extends GraphQLSchemaConfig, T8 extends GraphQLSchemaConfig, T9 extends GraphQLSchemaConfig, T10 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>, s6: SchemaInput<T6>, s7: SchemaInput<T7>, s8: SchemaInput<T8>, s9: SchemaInput<T9>, s10: SchemaInput<T10>): GraphQLSchemaDefinition<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<T1, T2>, T3>, T4>, T5>, T6>, T7>, T8>, T9>, T10>>;
|
|
187
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig, T6 extends GraphQLSchemaConfig, T7 extends GraphQLSchemaConfig, T8 extends GraphQLSchemaConfig, T9 extends GraphQLSchemaConfig, T10 extends GraphQLSchemaConfig, T11 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>, s6: SchemaInput<T6>, s7: SchemaInput<T7>, s8: SchemaInput<T8>, s9: SchemaInput<T9>, s10: SchemaInput<T10>, s11: SchemaInput<T11>): GraphQLSchemaDefinition<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<T1, T2>, T3>, T4>, T5>, T6>, T7>, T8>, T9>, T10>, T11>>;
|
|
188
|
+
declare function mergeGraphQLSchemas<T1 extends GraphQLSchemaConfig, T2 extends GraphQLSchemaConfig, T3 extends GraphQLSchemaConfig, T4 extends GraphQLSchemaConfig, T5 extends GraphQLSchemaConfig, T6 extends GraphQLSchemaConfig, T7 extends GraphQLSchemaConfig, T8 extends GraphQLSchemaConfig, T9 extends GraphQLSchemaConfig, T10 extends GraphQLSchemaConfig, T11 extends GraphQLSchemaConfig, T12 extends GraphQLSchemaConfig>(s1: SchemaInput<T1>, s2: SchemaInput<T2>, s3: SchemaInput<T3>, s4: SchemaInput<T4>, s5: SchemaInput<T5>, s6: SchemaInput<T6>, s7: SchemaInput<T7>, s8: SchemaInput<T8>, s9: SchemaInput<T9>, s10: SchemaInput<T10>, s11: SchemaInput<T11>, s12: SchemaInput<T12>): GraphQLSchemaDefinition<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<DeepMergeSchemas<T1, T2>, T3>, T4>, T5>, T6>, T7>, T8>, T9>, T10>, T11>, T12>>;
|
|
189
|
+
declare function mergeGraphQLSchemas(...schemas: SchemaInput<GraphQLSchemaConfig>[]): GraphQLSchemaDefinition<GraphQLSchemaConfig>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @fileoverview GraphQL field utility functions.
|
|
193
|
+
*
|
|
194
|
+
* @module graphql/field/utils
|
|
195
|
+
*/
|
|
196
|
+
/**
|
|
197
|
+
* Generates a field ID from a schema key path.
|
|
198
|
+
*
|
|
199
|
+
* This is the **single source of truth** for the naming convention used across:
|
|
200
|
+
* - SDL generation (`type Query { usersGet(...) }`)
|
|
201
|
+
* - Yoga resolver map keys
|
|
202
|
+
* - Client query string field names
|
|
203
|
+
*
|
|
204
|
+
* Converts dotted key paths to camelCase:
|
|
205
|
+
* - `"users.get"` → `"usersGet"`
|
|
206
|
+
* - `"projects.members.list"` → `"projectsMembersList"`
|
|
207
|
+
* - `"getUser"` → `"getUser"` (single segment unchanged)
|
|
208
|
+
*
|
|
209
|
+
* @param key - The dotted schema key path
|
|
210
|
+
* @returns A camelCase field ID string
|
|
211
|
+
*/
|
|
212
|
+
declare function generateFieldId(key: string): string;
|
|
213
|
+
|
|
214
|
+
export { DeepMergeSchemas, DeepMergeSchemasAll, type DefineGraphQLSchemaOptions, GraphQLFieldDefinition, GraphQLSchemaConfig, GraphQLSchemaDefaults, GraphQLSchemaDefinition, defineGraphQLSchema, defineMutation, defineQuery, defineSubscription, generateFieldId, mergeGraphQLSchemas };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineGraphQLSchema,
|
|
3
|
+
defineMutation,
|
|
4
|
+
defineQuery,
|
|
5
|
+
defineSubscription,
|
|
6
|
+
mergeGraphQLSchemas
|
|
7
|
+
} from "../../chunk-TZRBETT3.js";
|
|
8
|
+
import {
|
|
9
|
+
collectFields,
|
|
10
|
+
generateFieldId,
|
|
11
|
+
isFieldDefinition,
|
|
12
|
+
isSchemaDefinition
|
|
13
|
+
} from "../../chunk-BG2FY27M.js";
|
|
14
|
+
export {
|
|
15
|
+
collectFields,
|
|
16
|
+
defineGraphQLSchema,
|
|
17
|
+
defineMutation,
|
|
18
|
+
defineQuery,
|
|
19
|
+
defineSubscription,
|
|
20
|
+
generateFieldId,
|
|
21
|
+
isFieldDefinition,
|
|
22
|
+
isSchemaDefinition,
|
|
23
|
+
mergeGraphQLSchemas
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|