@gqloom/core 0.14.3 → 0.14.5

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.
@@ -1,4 +1,4 @@
1
- import { Ct as Middleware, Vt as OnlyMemoizationPayload, bn as BaseField, hn as ResolverPayload, ut as ResolvingFields } from "./index-DAymluHs.cjs";
1
+ import { Ct as Middleware, Vt as OnlyMemoizationPayload, bn as BaseField, hn as ResolverPayload, ut as ResolvingFields } from "./index-DLEFTLoS.cjs";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
 
4
4
  //#region src/context/async-iterator.d.ts
package/dist/context.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Ct as Middleware, Vt as OnlyMemoizationPayload, bn as BaseField, hn as ResolverPayload, ut as ResolvingFields } from "./index-BWCXjTlY.js";
1
+ import { Ct as Middleware, Vt as OnlyMemoizationPayload, bn as BaseField, hn as ResolverPayload, ut as ResolvingFields } from "./index-B3y48ybK.js";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
 
4
4
  //#region src/context/async-iterator.d.ts
@@ -129,7 +129,7 @@ interface IChainFactory<TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLS
129
129
  */
130
130
  interface ChainFactoryOptions extends FieldMeta {
131
131
  /** Middleware functions to be applied to the field */
132
- middlewares?: Middleware[];
132
+ middlewares?: Middleware[] | undefined;
133
133
  }
134
134
  /**
135
135
  * Base class for all chain factories
@@ -203,7 +203,7 @@ declare class FieldChainFactory<TOutput$1 extends GraphQLSilk = never, TInput$1
203
203
  * @template TInputNew - The new input type
204
204
  * @param input - The input type definition
205
205
  */
206
- input<TInputNew extends GraphQLSilk | Record<string, GraphQLSilk>>(input: TInputNew): FieldChainFactory<TOutput$1, TInputNew, TDependencies$1>;
206
+ input<TInputNew extends GraphQLSilk<any, Record<string, any>> | Record<string, GraphQLSilk>>(input: TInputNew): FieldChainFactory<TOutput$1, TInputNew, TDependencies$1>;
207
207
  /**
208
208
  * Specifies the dependencies for the field
209
209
  * @template TDependencies - The dependencies type
@@ -258,7 +258,7 @@ declare class QueryChainFactory<TOutput$1 extends GraphQLSilk = never, TInput$1
258
258
  * @param input - The input type definition
259
259
  * @returns A new QueryChainFactory instance with the updated input type
260
260
  */
261
- input<TInputNew extends GraphQLSilk | Record<string, GraphQLSilk>>(input: TInputNew): QueryChainFactory<TOutput$1, TInputNew>;
261
+ input<TInputNew extends GraphQLSilk<any, Record<string, any>> | Record<string, GraphQLSilk>>(input: TInputNew): QueryChainFactory<TOutput$1, TInputNew>;
262
262
  /**
263
263
  * Sets the resolve function for the query
264
264
  * @param resolve - The resolve function that processes the input and returns the output
@@ -297,7 +297,7 @@ declare class MutationChainFactory<TOutput$1 extends GraphQLSilk = never, TInput
297
297
  * @param input - The input type definition
298
298
  * @returns A new MutationChainFactory instance with the updated input type
299
299
  */
300
- input<TInputNew extends GraphQLSilk | Record<string, GraphQLSilk>>(input: TInputNew): MutationChainFactory<TOutput$1, TInputNew>;
300
+ input<TInputNew extends GraphQLSilk<any, Record<string, any>> | Record<string, GraphQLSilk>>(input: TInputNew): MutationChainFactory<TOutput$1, TInputNew>;
301
301
  /**
302
302
  * Sets the resolve function for the mutation
303
303
  * @param resolve - The resolve function that processes the input and returns the output
@@ -336,7 +336,7 @@ declare class SubscriptionChainFactory<TOutput$1 extends GraphQLSilk = never, TI
336
336
  * @param input - The input type definition
337
337
  * @returns A new SubscriptionChainFactory instance with the updated input type
338
338
  */
339
- input<TInputNew extends GraphQLSilk | Record<string, GraphQLSilk>>(input: TInputNew): SubscriptionChainFactory<TOutput$1, TInputNew>;
339
+ input<TInputNew extends GraphQLSilk<any, Record<string, any>> | Record<string, GraphQLSilk>>(input: TInputNew): SubscriptionChainFactory<TOutput$1, TInputNew>;
340
340
  /**
341
341
  * Sets the subscribe function for the subscription
342
342
  * @template TValue - The value type of the subscription
@@ -379,7 +379,7 @@ declare class QueryFactoryWithResolve<TInputO, TOutput$1 extends GraphQLSilk, TI
379
379
  get "~meta"(): Query<TOutput$1, TInput$1>["~meta"];
380
380
  constructor(outputSilk: TOutput$1, options: QueryOptions<TOutput$1, TInput$1>);
381
381
  protected clone(options?: Partial<QueryOptions<TOutput$1, TInput$1>> | undefined): this;
382
- input<TInputNew extends GraphQLSilk<TInputO>>(input: TInputNew): QueryFactoryWithResolve<TInputO, TOutput$1, TInputNew>;
382
+ input<TInputNew extends GraphQLSilk<TInputO, Record<string, any>>>(input: TInputNew): QueryFactoryWithResolve<TInputO, TOutput$1, TInputNew>;
383
383
  output<TOutputNew extends GraphQLSilk>(output: TOutputNew, transform: (output: StandardSchemaV1.InferOutput<TOutput$1>) => MayPromise<StandardSchemaV1.InferOutput<TOutputNew>>): QueryFactoryWithResolve<TInputO, TOutputNew, TInput$1>;
384
384
  }
385
385
  declare class MutationFactoryWithResolve<TInputO, TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSilk<TInputO>> extends BaseChainFactory<Query<TOutput$1, TInput$1>> implements Mutation<TOutput$1, TInput$1> {
@@ -388,7 +388,7 @@ declare class MutationFactoryWithResolve<TInputO, TOutput$1 extends GraphQLSilk,
388
388
  get "~meta"(): Mutation<TOutput$1, TInput$1>["~meta"];
389
389
  constructor(outputSilk: TOutput$1, options: MutationOptions<TOutput$1, TInput$1>);
390
390
  protected clone(options?: Partial<MutationOptions<TOutput$1, TInput$1>> | undefined): this;
391
- input<TInputNew extends GraphQLSilk<TInputO>>(input: TInputNew): MutationFactoryWithResolve<TInputO, TOutput$1, TInputNew>;
391
+ input<TInputNew extends GraphQLSilk<TInputO, Record<string, any>>>(input: TInputNew): MutationFactoryWithResolve<TInputO, TOutput$1, TInputNew>;
392
392
  output<TOutputNew extends GraphQLSilk>(output: TOutputNew, transform: (output: StandardSchemaV1.InferOutput<TOutput$1>) => MayPromise<StandardSchemaV1.InferOutput<TOutputNew>>): MutationFactoryWithResolve<TInputO, TOutputNew, TInput$1>;
393
393
  }
394
394
  declare class FieldFactoryWithResolve<TParent$1 extends GraphQLSilk, TOutput$1 extends GraphQLSilk, TInputO = never, TInput$1 extends GraphQLSilk<TInputO> | void = void> extends BaseChainFactory<Field<TParent$1, TOutput$1, TInput$1, string[] | undefined>> {
@@ -397,7 +397,7 @@ declare class FieldFactoryWithResolve<TParent$1 extends GraphQLSilk, TOutput$1 e
397
397
  get "~meta"(): Field<TParent$1, TOutput$1, TInput$1, string[] | undefined>["~meta"];
398
398
  constructor(outputSilk: TOutput$1, options: FieldOptions<TParent$1, TOutput$1, TInput$1, string[] | undefined>);
399
399
  protected clone(options?: Partial<FieldOptions<TParent$1, TOutput$1, TInput$1, string[] | undefined>> | undefined): this;
400
- input<TInputNew extends GraphQLSilk<TInputO>>(input: TInputNew): FieldFactoryWithResolve<TParent$1, TOutput$1, TInputO, TInputNew>;
400
+ input<TInputNew extends GraphQLSilk<TInputO, Record<string, any>>>(input: TInputNew): FieldFactoryWithResolve<TParent$1, TOutput$1, TInputO, TInputNew>;
401
401
  output<TOutputNew extends GraphQLSilk>(output: TOutputNew, transform: (output: StandardSchemaV1.InferOutput<TOutput$1>) => MayPromise<StandardSchemaV1.InferOutput<TOutputNew>>): FieldFactoryWithResolve<TParent$1, TOutputNew, TInputO, TInput$1>;
402
402
  }
403
403
  declare namespace types_loom_d_exports {
@@ -407,8 +407,8 @@ interface FieldMeta extends GraphQLFieldOptions {
407
407
  operation: "field" | "query" | "mutation" | "subscription";
408
408
  output: GraphQLSilk;
409
409
  input: GraphQLSilk | Record<string, GraphQLSilk> | void;
410
- middlewares?: Middleware[];
411
- dependencies?: string[];
410
+ middlewares?: Middleware[] | undefined;
411
+ dependencies?: string[] | undefined;
412
412
  resolve: (...args: any) => MayPromise<any>;
413
413
  }
414
414
  interface BaseField {
@@ -419,11 +419,11 @@ interface Field<TParent$1 extends GraphQLSilk, TOutput$1 extends GraphQLSilk, TI
419
419
  operation: "field";
420
420
  output: TOutput$1;
421
421
  input: TInput$1;
422
- middlewares?: Middleware[];
422
+ middlewares?: Middleware[] | undefined;
423
423
  dependencies?: TDependencies$1;
424
424
  types?: {
425
425
  parent: ReSilk<TParent$1>;
426
- };
426
+ } | undefined;
427
427
  resolve: (parent: StandardSchemaV1.InferOutput<NonNullable<TParent$1>>, input: InferInputO<TInput$1>, payload: ResolverPayload | void) => Promise<StandardSchemaV1.InferOutput<TOutput$1>>;
428
428
  } & GraphQLFieldOptions;
429
429
  }
@@ -433,7 +433,7 @@ interface Query<TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSilk | Re
433
433
  parent?: undefined;
434
434
  output: TOutput$1;
435
435
  input: TInput$1;
436
- middlewares?: Middleware[];
436
+ middlewares?: Middleware[] | undefined;
437
437
  resolve: (input: InferInputO<TInput$1>, payload: ResolverPayload | void) => Promise<StandardSchemaV1.InferOutput<TOutput$1>>;
438
438
  } & GraphQLFieldOptions;
439
439
  }
@@ -443,7 +443,7 @@ interface Mutation<TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSilk |
443
443
  parent?: undefined;
444
444
  output: TOutput$1;
445
445
  input: TInput$1;
446
- middlewares?: Middleware[];
446
+ middlewares?: Middleware[] | undefined;
447
447
  resolve: (input: InferInputO<TInput$1>, payload: ResolverPayload | void) => Promise<StandardSchemaV1.InferOutput<TOutput$1>>;
448
448
  } & GraphQLFieldOptions;
449
449
  }
@@ -453,10 +453,10 @@ interface Subscription<TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSi
453
453
  parent?: undefined;
454
454
  output: TOutput$1;
455
455
  input: TInput$1;
456
- middlewares?: Middleware[];
457
- types?: {
456
+ middlewares?: Middleware[] | undefined;
457
+ types?: ({
458
458
  value: TValue;
459
- } & GraphQLFieldOptions;
459
+ } & GraphQLFieldOptions) | undefined;
460
460
  resolve: (value: TValue, input: InferInputO<TInput$1>, payload: ResolverPayload | void) => MayPromise<StandardSchemaV1.InferOutput<TOutput$1>>;
461
461
  subscribe: (input: InferInputO<TInput$1>, payload: ResolverPayload | void) => MayPromise<AsyncIterator<TValue>>;
462
462
  } & GraphQLFieldOptions;
@@ -465,8 +465,8 @@ interface Resolver {
465
465
  readonly "~meta": {
466
466
  [IS_RESOLVER]: true;
467
467
  fields: Record<string, BaseField | typeof FIELD_HIDDEN>;
468
- options?: ResolverOptionsWithExtensions<any>;
469
- parent?: GraphQLSilk;
468
+ options?: ResolverOptionsWithExtensions<any> | undefined;
469
+ parent?: GraphQLSilk | undefined;
470
470
  };
471
471
  }
472
472
  type Operation = Query<GraphQLSilk, GraphQLSilk | Record<string, GraphQLSilk> | void> | Mutation<GraphQLSilk, GraphQLSilk | Record<string, GraphQLSilk> | void> | Subscription<GraphQLSilk, GraphQLSilk | Record<string, GraphQLSilk> | void, any>;
@@ -485,11 +485,11 @@ interface GraphQLSilk<TOutput$1 = any, TInput$1 = any> extends StandardSchemaV1<
485
485
  [GET_GRAPHQL_ARGUMENT_CONFIG]?: MayGetter<Omit<GraphQLArgumentConfig, "type" | "astNode"> | undefined>;
486
486
  }
487
487
  interface ResolverOptions<TField extends FieldOrOperation = FieldOrOperation> {
488
- middlewares?: Middleware<TField>[];
488
+ middlewares?: Middleware<TField>[] | undefined;
489
489
  }
490
490
  interface ResolverOptionsWithExtensions<TField extends FieldOrOperation = FieldOrOperation> extends ResolverOptions<TField>, Pick<GraphQLObjectTypeConfig<any, any>, "extensions"> {}
491
491
  interface ResolverOptionsWithParent<TField extends FieldOrOperation = FieldOrOperation> extends ResolverOptionsWithExtensions<TField> {
492
- parent?: TField extends Field<infer TParent, any, any, any> ? TParent : undefined;
492
+ parent?: (TField extends Field<infer TParent, any, any, any> ? TParent : undefined) | undefined;
493
493
  }
494
494
  interface ResolvingOptions extends Pick<ResolverOptions, "middlewares"> {
495
495
  payload: ResolverPayload | undefined;
@@ -503,14 +503,14 @@ type InferFieldOutput<TField extends BaseField> = TField["~meta"]["output"];
503
503
  * Options for creating a GraphQL Query.
504
504
  */
505
505
  interface QueryOptions<TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSilk | Record<string, GraphQLSilk> | void = void> extends ResolverOptions<Query<TOutput$1, TInput$1>>, GraphQLFieldOptions {
506
- input?: TInput$1;
506
+ input?: TInput$1 | undefined;
507
507
  resolve: (input: InferInputO<TInput$1>, payload: ResolverPayload | undefined) => MayPromise<StandardSchemaV1.InferOutput<TOutput$1>>;
508
508
  }
509
509
  /**
510
510
  * Options for creating a GraphQL Mutation.
511
511
  */
512
512
  interface MutationOptions<TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSilk | Record<string, GraphQLSilk> | undefined = undefined> extends ResolverOptions<Mutation<TOutput$1, TInput$1>>, GraphQLFieldOptions {
513
- input?: TInput$1;
513
+ input?: TInput$1 | undefined;
514
514
  resolve: (input: InferInputO<TInput$1>, payload: ResolverPayload | undefined) => MayPromise<StandardSchemaV1.InferOutput<TOutput$1>>;
515
515
  }
516
516
  /**
@@ -538,8 +538,8 @@ interface MutationFactoryWithChain extends MutationFactory, MutationChainFactory
538
538
  * Options for External Filed of existing GraphQL Object.
539
539
  */
540
540
  interface FieldOptions<TParent$1 extends GraphQLSilk, TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSilk | Record<string, GraphQLSilk> | void = void, TDependencies$1 extends string[] | undefined = undefined> extends ResolverOptions<Field<TParent$1, TOutput$1, TInput$1, TDependencies$1>>, GraphQLFieldOptions {
541
- input?: TInput$1;
542
- dependencies?: TDependencies$1;
541
+ input?: TInput$1 | undefined;
542
+ dependencies?: TDependencies$1 | undefined;
543
543
  resolve: (parent: TDependencies$1 extends string[] ? RequireKeys<NonNullable<StandardSchemaV1.InferOutput<TParent$1>>, TDependencies$1[number]> : NonNullable<StandardSchemaV1.InferOutput<TParent$1>>, input: InferInputO<TInput$1>, payload: ResolverPayload | undefined) => MayPromise<StandardSchemaV1.InferOutput<TOutput$1>>;
544
544
  }
545
545
  /**
@@ -568,9 +568,9 @@ interface FieldFactoryWithUtils extends FieldFactory, FieldChainFactory<never, u
568
568
  * Options for creating a GraphQL Subscription.
569
569
  */
570
570
  interface SubscriptionOptions<TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSilk | Record<string, GraphQLSilk> | undefined = undefined, TValue = StandardSchemaV1.InferOutput<TOutput$1>> extends ResolverOptions<Subscription<TOutput$1, TInput$1, TValue>>, GraphQLFieldOptions {
571
- input?: TInput$1;
571
+ input?: TInput$1 | undefined;
572
572
  subscribe: (input: InferInputO<TInput$1>, payload: ResolverPayload | undefined) => MayPromise<AsyncIterator<TValue>>;
573
- resolve?: (value: TValue, input: InferInputO<TInput$1>, payload: ResolverPayload | undefined) => MayPromise<StandardSchemaV1.InferOutput<TOutput$1>>;
573
+ resolve?: ((value: TValue, input: InferInputO<TInput$1>, payload: ResolverPayload | undefined) => MayPromise<StandardSchemaV1.InferOutput<TOutput$1>>) | undefined;
574
574
  }
575
575
  /**
576
576
  * Function to create a GraphQL subscription.
@@ -1177,7 +1177,7 @@ declare class GlobalWeaverContext implements Partial<Omit<WeaverContext, GlobalC
1177
1177
  get id(): number | undefined;
1178
1178
  get loomObjectMap(): Map<GraphQLObjectType<any, any>, LoomObjectType> | undefined;
1179
1179
  get loomUnionMap(): Map<GraphQLUnionType, GraphQLUnionType> | undefined;
1180
- get inputMap(): Map<GraphQLInterfaceType | GraphQLObjectType<any, any>, GraphQLInputObjectType> | undefined;
1180
+ get inputMap(): Map<GraphQLObjectType<any, any> | GraphQLInterfaceType, GraphQLInputObjectType> | undefined;
1181
1181
  get interfaceMap(): Map<GraphQLObjectType<any, any>, GraphQLInterfaceType> | undefined;
1182
1182
  get configs(): Map<string | symbol, WeaverConfig> | undefined;
1183
1183
  get vendorWeavers(): Map<string, SchemaWeaver> | undefined;
@@ -131,7 +131,7 @@ interface IChainFactory<TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLS
131
131
  */
132
132
  interface ChainFactoryOptions extends FieldMeta {
133
133
  /** Middleware functions to be applied to the field */
134
- middlewares?: Middleware[];
134
+ middlewares?: Middleware[] | undefined;
135
135
  }
136
136
  /**
137
137
  * Base class for all chain factories
@@ -205,7 +205,7 @@ declare class FieldChainFactory<TOutput$1 extends GraphQLSilk = never, TInput$1
205
205
  * @template TInputNew - The new input type
206
206
  * @param input - The input type definition
207
207
  */
208
- input<TInputNew extends GraphQLSilk | Record<string, GraphQLSilk>>(input: TInputNew): FieldChainFactory<TOutput$1, TInputNew, TDependencies$1>;
208
+ input<TInputNew extends GraphQLSilk<any, Record<string, any>> | Record<string, GraphQLSilk>>(input: TInputNew): FieldChainFactory<TOutput$1, TInputNew, TDependencies$1>;
209
209
  /**
210
210
  * Specifies the dependencies for the field
211
211
  * @template TDependencies - The dependencies type
@@ -260,7 +260,7 @@ declare class QueryChainFactory<TOutput$1 extends GraphQLSilk = never, TInput$1
260
260
  * @param input - The input type definition
261
261
  * @returns A new QueryChainFactory instance with the updated input type
262
262
  */
263
- input<TInputNew extends GraphQLSilk | Record<string, GraphQLSilk>>(input: TInputNew): QueryChainFactory<TOutput$1, TInputNew>;
263
+ input<TInputNew extends GraphQLSilk<any, Record<string, any>> | Record<string, GraphQLSilk>>(input: TInputNew): QueryChainFactory<TOutput$1, TInputNew>;
264
264
  /**
265
265
  * Sets the resolve function for the query
266
266
  * @param resolve - The resolve function that processes the input and returns the output
@@ -299,7 +299,7 @@ declare class MutationChainFactory<TOutput$1 extends GraphQLSilk = never, TInput
299
299
  * @param input - The input type definition
300
300
  * @returns A new MutationChainFactory instance with the updated input type
301
301
  */
302
- input<TInputNew extends GraphQLSilk | Record<string, GraphQLSilk>>(input: TInputNew): MutationChainFactory<TOutput$1, TInputNew>;
302
+ input<TInputNew extends GraphQLSilk<any, Record<string, any>> | Record<string, GraphQLSilk>>(input: TInputNew): MutationChainFactory<TOutput$1, TInputNew>;
303
303
  /**
304
304
  * Sets the resolve function for the mutation
305
305
  * @param resolve - The resolve function that processes the input and returns the output
@@ -338,7 +338,7 @@ declare class SubscriptionChainFactory<TOutput$1 extends GraphQLSilk = never, TI
338
338
  * @param input - The input type definition
339
339
  * @returns A new SubscriptionChainFactory instance with the updated input type
340
340
  */
341
- input<TInputNew extends GraphQLSilk | Record<string, GraphQLSilk>>(input: TInputNew): SubscriptionChainFactory<TOutput$1, TInputNew>;
341
+ input<TInputNew extends GraphQLSilk<any, Record<string, any>> | Record<string, GraphQLSilk>>(input: TInputNew): SubscriptionChainFactory<TOutput$1, TInputNew>;
342
342
  /**
343
343
  * Sets the subscribe function for the subscription
344
344
  * @template TValue - The value type of the subscription
@@ -381,7 +381,7 @@ declare class QueryFactoryWithResolve<TInputO, TOutput$1 extends GraphQLSilk, TI
381
381
  get "~meta"(): Query<TOutput$1, TInput$1>["~meta"];
382
382
  constructor(outputSilk: TOutput$1, options: QueryOptions<TOutput$1, TInput$1>);
383
383
  protected clone(options?: Partial<QueryOptions<TOutput$1, TInput$1>> | undefined): this;
384
- input<TInputNew extends GraphQLSilk<TInputO>>(input: TInputNew): QueryFactoryWithResolve<TInputO, TOutput$1, TInputNew>;
384
+ input<TInputNew extends GraphQLSilk<TInputO, Record<string, any>>>(input: TInputNew): QueryFactoryWithResolve<TInputO, TOutput$1, TInputNew>;
385
385
  output<TOutputNew extends GraphQLSilk>(output: TOutputNew, transform: (output: StandardSchemaV1.InferOutput<TOutput$1>) => MayPromise<StandardSchemaV1.InferOutput<TOutputNew>>): QueryFactoryWithResolve<TInputO, TOutputNew, TInput$1>;
386
386
  }
387
387
  declare class MutationFactoryWithResolve<TInputO, TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSilk<TInputO>> extends BaseChainFactory<Query<TOutput$1, TInput$1>> implements Mutation<TOutput$1, TInput$1> {
@@ -390,7 +390,7 @@ declare class MutationFactoryWithResolve<TInputO, TOutput$1 extends GraphQLSilk,
390
390
  get "~meta"(): Mutation<TOutput$1, TInput$1>["~meta"];
391
391
  constructor(outputSilk: TOutput$1, options: MutationOptions<TOutput$1, TInput$1>);
392
392
  protected clone(options?: Partial<MutationOptions<TOutput$1, TInput$1>> | undefined): this;
393
- input<TInputNew extends GraphQLSilk<TInputO>>(input: TInputNew): MutationFactoryWithResolve<TInputO, TOutput$1, TInputNew>;
393
+ input<TInputNew extends GraphQLSilk<TInputO, Record<string, any>>>(input: TInputNew): MutationFactoryWithResolve<TInputO, TOutput$1, TInputNew>;
394
394
  output<TOutputNew extends GraphQLSilk>(output: TOutputNew, transform: (output: StandardSchemaV1.InferOutput<TOutput$1>) => MayPromise<StandardSchemaV1.InferOutput<TOutputNew>>): MutationFactoryWithResolve<TInputO, TOutputNew, TInput$1>;
395
395
  }
396
396
  declare class FieldFactoryWithResolve<TParent$1 extends GraphQLSilk, TOutput$1 extends GraphQLSilk, TInputO = never, TInput$1 extends GraphQLSilk<TInputO> | void = void> extends BaseChainFactory<Field<TParent$1, TOutput$1, TInput$1, string[] | undefined>> {
@@ -399,7 +399,7 @@ declare class FieldFactoryWithResolve<TParent$1 extends GraphQLSilk, TOutput$1 e
399
399
  get "~meta"(): Field<TParent$1, TOutput$1, TInput$1, string[] | undefined>["~meta"];
400
400
  constructor(outputSilk: TOutput$1, options: FieldOptions<TParent$1, TOutput$1, TInput$1, string[] | undefined>);
401
401
  protected clone(options?: Partial<FieldOptions<TParent$1, TOutput$1, TInput$1, string[] | undefined>> | undefined): this;
402
- input<TInputNew extends GraphQLSilk<TInputO>>(input: TInputNew): FieldFactoryWithResolve<TParent$1, TOutput$1, TInputO, TInputNew>;
402
+ input<TInputNew extends GraphQLSilk<TInputO, Record<string, any>>>(input: TInputNew): FieldFactoryWithResolve<TParent$1, TOutput$1, TInputO, TInputNew>;
403
403
  output<TOutputNew extends GraphQLSilk>(output: TOutputNew, transform: (output: StandardSchemaV1.InferOutput<TOutput$1>) => MayPromise<StandardSchemaV1.InferOutput<TOutputNew>>): FieldFactoryWithResolve<TParent$1, TOutputNew, TInputO, TInput$1>;
404
404
  }
405
405
  declare namespace types_loom_d_exports {
@@ -409,8 +409,8 @@ interface FieldMeta extends GraphQLFieldOptions {
409
409
  operation: "field" | "query" | "mutation" | "subscription";
410
410
  output: GraphQLSilk;
411
411
  input: GraphQLSilk | Record<string, GraphQLSilk> | void;
412
- middlewares?: Middleware[];
413
- dependencies?: string[];
412
+ middlewares?: Middleware[] | undefined;
413
+ dependencies?: string[] | undefined;
414
414
  resolve: (...args: any) => MayPromise<any>;
415
415
  }
416
416
  interface BaseField {
@@ -421,11 +421,11 @@ interface Field<TParent$1 extends GraphQLSilk, TOutput$1 extends GraphQLSilk, TI
421
421
  operation: "field";
422
422
  output: TOutput$1;
423
423
  input: TInput$1;
424
- middlewares?: Middleware[];
424
+ middlewares?: Middleware[] | undefined;
425
425
  dependencies?: TDependencies$1;
426
426
  types?: {
427
427
  parent: ReSilk<TParent$1>;
428
- };
428
+ } | undefined;
429
429
  resolve: (parent: StandardSchemaV1.InferOutput<NonNullable<TParent$1>>, input: InferInputO<TInput$1>, payload: ResolverPayload | void) => Promise<StandardSchemaV1.InferOutput<TOutput$1>>;
430
430
  } & GraphQLFieldOptions;
431
431
  }
@@ -435,7 +435,7 @@ interface Query<TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSilk | Re
435
435
  parent?: undefined;
436
436
  output: TOutput$1;
437
437
  input: TInput$1;
438
- middlewares?: Middleware[];
438
+ middlewares?: Middleware[] | undefined;
439
439
  resolve: (input: InferInputO<TInput$1>, payload: ResolverPayload | void) => Promise<StandardSchemaV1.InferOutput<TOutput$1>>;
440
440
  } & GraphQLFieldOptions;
441
441
  }
@@ -445,7 +445,7 @@ interface Mutation<TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSilk |
445
445
  parent?: undefined;
446
446
  output: TOutput$1;
447
447
  input: TInput$1;
448
- middlewares?: Middleware[];
448
+ middlewares?: Middleware[] | undefined;
449
449
  resolve: (input: InferInputO<TInput$1>, payload: ResolverPayload | void) => Promise<StandardSchemaV1.InferOutput<TOutput$1>>;
450
450
  } & GraphQLFieldOptions;
451
451
  }
@@ -455,10 +455,10 @@ interface Subscription<TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSi
455
455
  parent?: undefined;
456
456
  output: TOutput$1;
457
457
  input: TInput$1;
458
- middlewares?: Middleware[];
459
- types?: {
458
+ middlewares?: Middleware[] | undefined;
459
+ types?: ({
460
460
  value: TValue;
461
- } & GraphQLFieldOptions;
461
+ } & GraphQLFieldOptions) | undefined;
462
462
  resolve: (value: TValue, input: InferInputO<TInput$1>, payload: ResolverPayload | void) => MayPromise<StandardSchemaV1.InferOutput<TOutput$1>>;
463
463
  subscribe: (input: InferInputO<TInput$1>, payload: ResolverPayload | void) => MayPromise<AsyncIterator<TValue>>;
464
464
  } & GraphQLFieldOptions;
@@ -467,8 +467,8 @@ interface Resolver {
467
467
  readonly "~meta": {
468
468
  [IS_RESOLVER]: true;
469
469
  fields: Record<string, BaseField | typeof FIELD_HIDDEN>;
470
- options?: ResolverOptionsWithExtensions<any>;
471
- parent?: GraphQLSilk;
470
+ options?: ResolverOptionsWithExtensions<any> | undefined;
471
+ parent?: GraphQLSilk | undefined;
472
472
  };
473
473
  }
474
474
  type Operation = Query<GraphQLSilk, GraphQLSilk | Record<string, GraphQLSilk> | void> | Mutation<GraphQLSilk, GraphQLSilk | Record<string, GraphQLSilk> | void> | Subscription<GraphQLSilk, GraphQLSilk | Record<string, GraphQLSilk> | void, any>;
@@ -487,11 +487,11 @@ interface GraphQLSilk<TOutput$1 = any, TInput$1 = any> extends StandardSchemaV1<
487
487
  [GET_GRAPHQL_ARGUMENT_CONFIG]?: MayGetter<Omit<GraphQLArgumentConfig, "type" | "astNode"> | undefined>;
488
488
  }
489
489
  interface ResolverOptions<TField extends FieldOrOperation = FieldOrOperation> {
490
- middlewares?: Middleware<TField>[];
490
+ middlewares?: Middleware<TField>[] | undefined;
491
491
  }
492
492
  interface ResolverOptionsWithExtensions<TField extends FieldOrOperation = FieldOrOperation> extends ResolverOptions<TField>, Pick<GraphQLObjectTypeConfig<any, any>, "extensions"> {}
493
493
  interface ResolverOptionsWithParent<TField extends FieldOrOperation = FieldOrOperation> extends ResolverOptionsWithExtensions<TField> {
494
- parent?: TField extends Field<infer TParent, any, any, any> ? TParent : undefined;
494
+ parent?: (TField extends Field<infer TParent, any, any, any> ? TParent : undefined) | undefined;
495
495
  }
496
496
  interface ResolvingOptions extends Pick<ResolverOptions, "middlewares"> {
497
497
  payload: ResolverPayload | undefined;
@@ -505,14 +505,14 @@ type InferFieldOutput<TField extends BaseField> = TField["~meta"]["output"];
505
505
  * Options for creating a GraphQL Query.
506
506
  */
507
507
  interface QueryOptions<TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSilk | Record<string, GraphQLSilk> | void = void> extends ResolverOptions<Query<TOutput$1, TInput$1>>, GraphQLFieldOptions {
508
- input?: TInput$1;
508
+ input?: TInput$1 | undefined;
509
509
  resolve: (input: InferInputO<TInput$1>, payload: ResolverPayload | undefined) => MayPromise<StandardSchemaV1.InferOutput<TOutput$1>>;
510
510
  }
511
511
  /**
512
512
  * Options for creating a GraphQL Mutation.
513
513
  */
514
514
  interface MutationOptions<TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSilk | Record<string, GraphQLSilk> | undefined = undefined> extends ResolverOptions<Mutation<TOutput$1, TInput$1>>, GraphQLFieldOptions {
515
- input?: TInput$1;
515
+ input?: TInput$1 | undefined;
516
516
  resolve: (input: InferInputO<TInput$1>, payload: ResolverPayload | undefined) => MayPromise<StandardSchemaV1.InferOutput<TOutput$1>>;
517
517
  }
518
518
  /**
@@ -540,8 +540,8 @@ interface MutationFactoryWithChain extends MutationFactory, MutationChainFactory
540
540
  * Options for External Filed of existing GraphQL Object.
541
541
  */
542
542
  interface FieldOptions<TParent$1 extends GraphQLSilk, TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSilk | Record<string, GraphQLSilk> | void = void, TDependencies$1 extends string[] | undefined = undefined> extends ResolverOptions<Field<TParent$1, TOutput$1, TInput$1, TDependencies$1>>, GraphQLFieldOptions {
543
- input?: TInput$1;
544
- dependencies?: TDependencies$1;
543
+ input?: TInput$1 | undefined;
544
+ dependencies?: TDependencies$1 | undefined;
545
545
  resolve: (parent: TDependencies$1 extends string[] ? RequireKeys<NonNullable<StandardSchemaV1.InferOutput<TParent$1>>, TDependencies$1[number]> : NonNullable<StandardSchemaV1.InferOutput<TParent$1>>, input: InferInputO<TInput$1>, payload: ResolverPayload | undefined) => MayPromise<StandardSchemaV1.InferOutput<TOutput$1>>;
546
546
  }
547
547
  /**
@@ -570,9 +570,9 @@ interface FieldFactoryWithUtils extends FieldFactory, FieldChainFactory<never, u
570
570
  * Options for creating a GraphQL Subscription.
571
571
  */
572
572
  interface SubscriptionOptions<TOutput$1 extends GraphQLSilk, TInput$1 extends GraphQLSilk | Record<string, GraphQLSilk> | undefined = undefined, TValue = StandardSchemaV1.InferOutput<TOutput$1>> extends ResolverOptions<Subscription<TOutput$1, TInput$1, TValue>>, GraphQLFieldOptions {
573
- input?: TInput$1;
573
+ input?: TInput$1 | undefined;
574
574
  subscribe: (input: InferInputO<TInput$1>, payload: ResolverPayload | undefined) => MayPromise<AsyncIterator<TValue>>;
575
- resolve?: (value: TValue, input: InferInputO<TInput$1>, payload: ResolverPayload | undefined) => MayPromise<StandardSchemaV1.InferOutput<TOutput$1>>;
575
+ resolve?: ((value: TValue, input: InferInputO<TInput$1>, payload: ResolverPayload | undefined) => MayPromise<StandardSchemaV1.InferOutput<TOutput$1>>) | undefined;
576
576
  }
577
577
  /**
578
578
  * Function to create a GraphQL subscription.
@@ -1179,7 +1179,7 @@ declare class GlobalWeaverContext implements Partial<Omit<WeaverContext, GlobalC
1179
1179
  get id(): number | undefined;
1180
1180
  get loomObjectMap(): Map<GraphQLObjectType<any, any>, LoomObjectType> | undefined;
1181
1181
  get loomUnionMap(): Map<GraphQLUnionType, GraphQLUnionType> | undefined;
1182
- get inputMap(): Map<GraphQLInterfaceType | GraphQLObjectType<any, any>, GraphQLInputObjectType> | undefined;
1182
+ get inputMap(): Map<GraphQLObjectType<any, any> | GraphQLInterfaceType, GraphQLInputObjectType> | undefined;
1183
1183
  get interfaceMap(): Map<GraphQLObjectType<any, any>, GraphQLInterfaceType> | undefined;
1184
1184
  get configs(): Map<string | symbol, WeaverConfig> | undefined;
1185
1185
  get vendorWeavers(): Map<string, SchemaWeaver> | undefined;
package/dist/index.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as resolver, $t as FieldOptions, A as getGraphQLArgumentConfig, An as BaseChainFactory, At as MayGetter, B as ObjectChainResolver, Bn as SubscriptionChainFactory, Bt as tryIn, C as DirectiveItem, Cn as FieldOrOperation, Ct as Middleware, D as ListSilk, Dn as Resolver, Dt as applyMiddlewares, E as GQLoomExtensions, En as Query, Et as MiddlewareOptions, F as nullableSilk, Fn as MutationChainFactory, Ft as BatchLoadFn, G as createMutation, Gt as onlyMemoization, H as ResolverMeta, Hn as symbols_d_exports, Ht as assignContextMap, I as parseSilk, In as MutationFactoryWithResolve, It as EasyDataLoader, J as defaultSubscriptionResolve, Jt as getFieldOptions, K as createQuery, Kt as AUTO_ALIASING, L as silk, Ln as QueryChainFactory, Lt as LoomDataLoader, M as isSilk, Mn as FieldChainFactory, Mt as OmitInUnion, N as listSilk, Nn as FieldFactoryWithResolve, Nt as RequireKeys, O as NonNullSilk, On as Subscription, Ot as filterMiddlewares, P as nonNullSilk, Pn as IChainFactory, Pt as ValueOf, Q as query, Qt as FieldFactoryWithUtils, R as ChainResolver, Rn as QueryFactoryWithResolve, Rt as markErrorLocation, S as inputToArgs, Sn as FieldMeta, St as CallableMiddlewareOptions, T as GQLoomExtensionAttribute, Tn as Operation, Tt as MiddlewareOperation, U as ToExecutorProps, Un as StandardSchemaV1, Ut as getMemoizationMap, V as ResolverFactory, Vn as SubscriptionNeedResolve, Vt as OnlyMemoizationPayload, W as createField, Wt as isOnlyMemoryPayload, X as loom, Xt as getSubscriptionOptions, Y as field, Yt as getOperationOptions, Z as mutation, Zt as FieldFactory, _ as SchemaWeaver, _n as SubscriptionFactory, _t as meta, a as LoomObjectType, an as MutationFactory, at as getStandardValue, b as ensureInputObjectType, bn as BaseField, bt as toFieldMap, c as AliasList, cn as OperationType, ct as pascalCase, d as WeaverContext, dn as QueryOptions, dt as ResolvingFieldsOptions, en as FieldOrOperationType, et as subscription, f as collectName, fn as ResolverOptions, ft as getDeepResolvingFields, g as weaverContext, gn as ResolvingOptions, gt as mapValue, h as provideWeaverContext, hn as ResolverPayload, ht as deepMerge, i as CoreSchemaWeaverConfigOptions, in as InferFieldOutput, it as createInputParser, j as getGraphQLType, jn as ChainFactoryOptions, jt as MayPromise, k as NullableSilk, kn as types_loom_d_exports, kt as IsAny, l as GlobalWeaverContext, ln as QueryFactory, lt as screamingSnakeCase, m as initWeaverContext, mn as ResolverOptionsWithParent, mt as parseResolvingFields, n as weave, nn as GraphQLSilk, nt as InferInputI, o as OPERATION_OBJECT_NAMES, on as MutationFactoryWithChain, ot as parseInputValue, p as collectNames, pn as ResolverOptionsWithExtensions, pt as getResolvingFields, q as createSubscription, qt as DERIVED_DEPENDENCIES, r as CoreSchemaWeaverConfig, rn as InferFieldInput, rt as InferInputO, s as getCacheType, sn as MutationOptions, st as capitalize, t as GraphQLSchemaLoom, tn as GraphQLFieldOptions, tt as CallableInputParser, u as WeaverConfig, un as QueryFactoryWithChain, ut as ResolvingFields, v as isSchemaVendorWeaver, vn as SubscriptionFactoryWithChain, vt as notNullish, w as DirectiveRecord, wn as Mutation, wt as MiddlewareConfig, x as ensureInputType, xn as Field, xt as toObjMap, y as ensureInterfaceType, yn as SubscriptionOptions, yt as toArguments, z as Executor, zn as ResolvableSubscription, zt as markLocation } from "./index-DAymluHs.cjs";
1
+ import { $ as resolver, $t as FieldOptions, A as getGraphQLArgumentConfig, An as BaseChainFactory, At as MayGetter, B as ObjectChainResolver, Bn as SubscriptionChainFactory, Bt as tryIn, C as DirectiveItem, Cn as FieldOrOperation, Ct as Middleware, D as ListSilk, Dn as Resolver, Dt as applyMiddlewares, E as GQLoomExtensions, En as Query, Et as MiddlewareOptions, F as nullableSilk, Fn as MutationChainFactory, Ft as BatchLoadFn, G as createMutation, Gt as onlyMemoization, H as ResolverMeta, Hn as symbols_d_exports, Ht as assignContextMap, I as parseSilk, In as MutationFactoryWithResolve, It as EasyDataLoader, J as defaultSubscriptionResolve, Jt as getFieldOptions, K as createQuery, Kt as AUTO_ALIASING, L as silk, Ln as QueryChainFactory, Lt as LoomDataLoader, M as isSilk, Mn as FieldChainFactory, Mt as OmitInUnion, N as listSilk, Nn as FieldFactoryWithResolve, Nt as RequireKeys, O as NonNullSilk, On as Subscription, Ot as filterMiddlewares, P as nonNullSilk, Pn as IChainFactory, Pt as ValueOf, Q as query, Qt as FieldFactoryWithUtils, R as ChainResolver, Rn as QueryFactoryWithResolve, Rt as markErrorLocation, S as inputToArgs, Sn as FieldMeta, St as CallableMiddlewareOptions, T as GQLoomExtensionAttribute, Tn as Operation, Tt as MiddlewareOperation, U as ToExecutorProps, Un as StandardSchemaV1, Ut as getMemoizationMap, V as ResolverFactory, Vn as SubscriptionNeedResolve, Vt as OnlyMemoizationPayload, W as createField, Wt as isOnlyMemoryPayload, X as loom, Xt as getSubscriptionOptions, Y as field, Yt as getOperationOptions, Z as mutation, Zt as FieldFactory, _ as SchemaWeaver, _n as SubscriptionFactory, _t as meta, a as LoomObjectType, an as MutationFactory, at as getStandardValue, b as ensureInputObjectType, bn as BaseField, bt as toFieldMap, c as AliasList, cn as OperationType, ct as pascalCase, d as WeaverContext, dn as QueryOptions, dt as ResolvingFieldsOptions, en as FieldOrOperationType, et as subscription, f as collectName, fn as ResolverOptions, ft as getDeepResolvingFields, g as weaverContext, gn as ResolvingOptions, gt as mapValue, h as provideWeaverContext, hn as ResolverPayload, ht as deepMerge, i as CoreSchemaWeaverConfigOptions, in as InferFieldOutput, it as createInputParser, j as getGraphQLType, jn as ChainFactoryOptions, jt as MayPromise, k as NullableSilk, kn as types_loom_d_exports, kt as IsAny, l as GlobalWeaverContext, ln as QueryFactory, lt as screamingSnakeCase, m as initWeaverContext, mn as ResolverOptionsWithParent, mt as parseResolvingFields, n as weave, nn as GraphQLSilk, nt as InferInputI, o as OPERATION_OBJECT_NAMES, on as MutationFactoryWithChain, ot as parseInputValue, p as collectNames, pn as ResolverOptionsWithExtensions, pt as getResolvingFields, q as createSubscription, qt as DERIVED_DEPENDENCIES, r as CoreSchemaWeaverConfig, rn as InferFieldInput, rt as InferInputO, s as getCacheType, sn as MutationOptions, st as capitalize, t as GraphQLSchemaLoom, tn as GraphQLFieldOptions, tt as CallableInputParser, u as WeaverConfig, un as QueryFactoryWithChain, ut as ResolvingFields, v as isSchemaVendorWeaver, vn as SubscriptionFactoryWithChain, vt as notNullish, w as DirectiveRecord, wn as Mutation, wt as MiddlewareConfig, x as ensureInputType, xn as Field, xt as toObjMap, y as ensureInterfaceType, yn as SubscriptionOptions, yt as toArguments, z as Executor, zn as ResolvableSubscription, zt as markLocation } from "./index-DLEFTLoS.cjs";
2
2
  export { AUTO_ALIASING, AliasList, BaseChainFactory, BaseField, BatchLoadFn, CallableInputParser, CallableMiddlewareOptions, ChainFactoryOptions, ChainResolver, CoreSchemaWeaverConfig, CoreSchemaWeaverConfigOptions, DERIVED_DEPENDENCIES, DirectiveItem, DirectiveRecord, EasyDataLoader, Executor, Field, FieldChainFactory, FieldFactory, FieldFactoryWithResolve, FieldFactoryWithUtils, FieldMeta, FieldOptions, FieldOrOperation, FieldOrOperationType, GQLoomExtensionAttribute, GQLoomExtensions, GlobalWeaverContext, GraphQLFieldOptions, GraphQLSchemaLoom, GraphQLSilk, IChainFactory, InferFieldInput, InferFieldOutput, InferInputI, InferInputO, IsAny, ListSilk, types_loom_d_exports as Loom, LoomDataLoader, LoomObjectType, MayGetter, MayPromise, Middleware, MiddlewareConfig, MiddlewareOperation, MiddlewareOptions, Mutation, MutationChainFactory, MutationFactory, MutationFactoryWithChain, MutationFactoryWithResolve, MutationOptions, NonNullSilk, NullableSilk, OPERATION_OBJECT_NAMES, ObjectChainResolver, OmitInUnion, OnlyMemoizationPayload, Operation, OperationType, Query, QueryChainFactory, QueryFactory, QueryFactoryWithChain, QueryFactoryWithResolve, QueryOptions, RequireKeys, ResolvableSubscription, Resolver, ResolverFactory, ResolverMeta, ResolverOptions, ResolverOptionsWithExtensions, ResolverOptionsWithParent, ResolverPayload, ResolvingFields, ResolvingFieldsOptions, ResolvingOptions, symbols_d_exports as SYMBOLS, SchemaWeaver, StandardSchemaV1, Subscription, SubscriptionChainFactory, SubscriptionFactory, SubscriptionFactoryWithChain, SubscriptionNeedResolve, SubscriptionOptions, ToExecutorProps, ValueOf, WeaverConfig, WeaverContext, applyMiddlewares, assignContextMap, capitalize, collectName, collectNames, createField, createInputParser, createMutation, createQuery, createSubscription, deepMerge, defaultSubscriptionResolve, ensureInputObjectType, ensureInputType, ensureInterfaceType, field, filterMiddlewares, getCacheType, getDeepResolvingFields, getFieldOptions, getGraphQLArgumentConfig, getGraphQLType, getMemoizationMap, getOperationOptions, getResolvingFields, getStandardValue, getSubscriptionOptions, initWeaverContext, inputToArgs, isOnlyMemoryPayload, isSchemaVendorWeaver, isSilk, listSilk, loom, mapValue, markErrorLocation, markLocation, meta, mutation, nonNullSilk, notNullish, nullableSilk, onlyMemoization, parseInputValue, parseResolvingFields, parseSilk, pascalCase, provideWeaverContext, query, resolver, screamingSnakeCase, silk, subscription, toArguments, toFieldMap, toObjMap, tryIn, weave, weaverContext };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as resolver, $t as FieldOptions, A as getGraphQLArgumentConfig, An as BaseChainFactory, At as MayGetter, B as ObjectChainResolver, Bn as SubscriptionChainFactory, Bt as tryIn, C as DirectiveItem, Cn as FieldOrOperation, Ct as Middleware, D as ListSilk, Dn as Resolver, Dt as applyMiddlewares, E as GQLoomExtensions, En as Query, Et as MiddlewareOptions, F as nullableSilk, Fn as MutationChainFactory, Ft as BatchLoadFn, G as createMutation, Gt as onlyMemoization, H as ResolverMeta, Hn as symbols_d_exports, Ht as assignContextMap, I as parseSilk, In as MutationFactoryWithResolve, It as EasyDataLoader, J as defaultSubscriptionResolve, Jt as getFieldOptions, K as createQuery, Kt as AUTO_ALIASING, L as silk, Ln as QueryChainFactory, Lt as LoomDataLoader, M as isSilk, Mn as FieldChainFactory, Mt as OmitInUnion, N as listSilk, Nn as FieldFactoryWithResolve, Nt as RequireKeys, O as NonNullSilk, On as Subscription, Ot as filterMiddlewares, P as nonNullSilk, Pn as IChainFactory, Pt as ValueOf, Q as query, Qt as FieldFactoryWithUtils, R as ChainResolver, Rn as QueryFactoryWithResolve, Rt as markErrorLocation, S as inputToArgs, Sn as FieldMeta, St as CallableMiddlewareOptions, T as GQLoomExtensionAttribute, Tn as Operation, Tt as MiddlewareOperation, U as ToExecutorProps, Un as StandardSchemaV1, Ut as getMemoizationMap, V as ResolverFactory, Vn as SubscriptionNeedResolve, Vt as OnlyMemoizationPayload, W as createField, Wt as isOnlyMemoryPayload, X as loom, Xt as getSubscriptionOptions, Y as field, Yt as getOperationOptions, Z as mutation, Zt as FieldFactory, _ as SchemaWeaver, _n as SubscriptionFactory, _t as meta, a as LoomObjectType, an as MutationFactory, at as getStandardValue, b as ensureInputObjectType, bn as BaseField, bt as toFieldMap, c as AliasList, cn as OperationType, ct as pascalCase, d as WeaverContext, dn as QueryOptions, dt as ResolvingFieldsOptions, en as FieldOrOperationType, et as subscription, f as collectName, fn as ResolverOptions, ft as getDeepResolvingFields, g as weaverContext, gn as ResolvingOptions, gt as mapValue, h as provideWeaverContext, hn as ResolverPayload, ht as deepMerge, i as CoreSchemaWeaverConfigOptions, in as InferFieldOutput, it as createInputParser, j as getGraphQLType, jn as ChainFactoryOptions, jt as MayPromise, k as NullableSilk, kn as types_loom_d_exports, kt as IsAny, l as GlobalWeaverContext, ln as QueryFactory, lt as screamingSnakeCase, m as initWeaverContext, mn as ResolverOptionsWithParent, mt as parseResolvingFields, n as weave, nn as GraphQLSilk, nt as InferInputI, o as OPERATION_OBJECT_NAMES, on as MutationFactoryWithChain, ot as parseInputValue, p as collectNames, pn as ResolverOptionsWithExtensions, pt as getResolvingFields, q as createSubscription, qt as DERIVED_DEPENDENCIES, r as CoreSchemaWeaverConfig, rn as InferFieldInput, rt as InferInputO, s as getCacheType, sn as MutationOptions, st as capitalize, t as GraphQLSchemaLoom, tn as GraphQLFieldOptions, tt as CallableInputParser, u as WeaverConfig, un as QueryFactoryWithChain, ut as ResolvingFields, v as isSchemaVendorWeaver, vn as SubscriptionFactoryWithChain, vt as notNullish, w as DirectiveRecord, wn as Mutation, wt as MiddlewareConfig, x as ensureInputType, xn as Field, xt as toObjMap, y as ensureInterfaceType, yn as SubscriptionOptions, yt as toArguments, z as Executor, zn as ResolvableSubscription, zt as markLocation } from "./index-BWCXjTlY.js";
1
+ import { $ as resolver, $t as FieldOptions, A as getGraphQLArgumentConfig, An as BaseChainFactory, At as MayGetter, B as ObjectChainResolver, Bn as SubscriptionChainFactory, Bt as tryIn, C as DirectiveItem, Cn as FieldOrOperation, Ct as Middleware, D as ListSilk, Dn as Resolver, Dt as applyMiddlewares, E as GQLoomExtensions, En as Query, Et as MiddlewareOptions, F as nullableSilk, Fn as MutationChainFactory, Ft as BatchLoadFn, G as createMutation, Gt as onlyMemoization, H as ResolverMeta, Hn as symbols_d_exports, Ht as assignContextMap, I as parseSilk, In as MutationFactoryWithResolve, It as EasyDataLoader, J as defaultSubscriptionResolve, Jt as getFieldOptions, K as createQuery, Kt as AUTO_ALIASING, L as silk, Ln as QueryChainFactory, Lt as LoomDataLoader, M as isSilk, Mn as FieldChainFactory, Mt as OmitInUnion, N as listSilk, Nn as FieldFactoryWithResolve, Nt as RequireKeys, O as NonNullSilk, On as Subscription, Ot as filterMiddlewares, P as nonNullSilk, Pn as IChainFactory, Pt as ValueOf, Q as query, Qt as FieldFactoryWithUtils, R as ChainResolver, Rn as QueryFactoryWithResolve, Rt as markErrorLocation, S as inputToArgs, Sn as FieldMeta, St as CallableMiddlewareOptions, T as GQLoomExtensionAttribute, Tn as Operation, Tt as MiddlewareOperation, U as ToExecutorProps, Un as StandardSchemaV1, Ut as getMemoizationMap, V as ResolverFactory, Vn as SubscriptionNeedResolve, Vt as OnlyMemoizationPayload, W as createField, Wt as isOnlyMemoryPayload, X as loom, Xt as getSubscriptionOptions, Y as field, Yt as getOperationOptions, Z as mutation, Zt as FieldFactory, _ as SchemaWeaver, _n as SubscriptionFactory, _t as meta, a as LoomObjectType, an as MutationFactory, at as getStandardValue, b as ensureInputObjectType, bn as BaseField, bt as toFieldMap, c as AliasList, cn as OperationType, ct as pascalCase, d as WeaverContext, dn as QueryOptions, dt as ResolvingFieldsOptions, en as FieldOrOperationType, et as subscription, f as collectName, fn as ResolverOptions, ft as getDeepResolvingFields, g as weaverContext, gn as ResolvingOptions, gt as mapValue, h as provideWeaverContext, hn as ResolverPayload, ht as deepMerge, i as CoreSchemaWeaverConfigOptions, in as InferFieldOutput, it as createInputParser, j as getGraphQLType, jn as ChainFactoryOptions, jt as MayPromise, k as NullableSilk, kn as types_loom_d_exports, kt as IsAny, l as GlobalWeaverContext, ln as QueryFactory, lt as screamingSnakeCase, m as initWeaverContext, mn as ResolverOptionsWithParent, mt as parseResolvingFields, n as weave, nn as GraphQLSilk, nt as InferInputI, o as OPERATION_OBJECT_NAMES, on as MutationFactoryWithChain, ot as parseInputValue, p as collectNames, pn as ResolverOptionsWithExtensions, pt as getResolvingFields, q as createSubscription, qt as DERIVED_DEPENDENCIES, r as CoreSchemaWeaverConfig, rn as InferFieldInput, rt as InferInputO, s as getCacheType, sn as MutationOptions, st as capitalize, t as GraphQLSchemaLoom, tn as GraphQLFieldOptions, tt as CallableInputParser, u as WeaverConfig, un as QueryFactoryWithChain, ut as ResolvingFields, v as isSchemaVendorWeaver, vn as SubscriptionFactoryWithChain, vt as notNullish, w as DirectiveRecord, wn as Mutation, wt as MiddlewareConfig, x as ensureInputType, xn as Field, xt as toObjMap, y as ensureInterfaceType, yn as SubscriptionOptions, yt as toArguments, z as Executor, zn as ResolvableSubscription, zt as markLocation } from "./index-B3y48ybK.js";
2
2
  export { AUTO_ALIASING, AliasList, BaseChainFactory, BaseField, BatchLoadFn, CallableInputParser, CallableMiddlewareOptions, ChainFactoryOptions, ChainResolver, CoreSchemaWeaverConfig, CoreSchemaWeaverConfigOptions, DERIVED_DEPENDENCIES, DirectiveItem, DirectiveRecord, EasyDataLoader, Executor, Field, FieldChainFactory, FieldFactory, FieldFactoryWithResolve, FieldFactoryWithUtils, FieldMeta, FieldOptions, FieldOrOperation, FieldOrOperationType, GQLoomExtensionAttribute, GQLoomExtensions, GlobalWeaverContext, GraphQLFieldOptions, GraphQLSchemaLoom, GraphQLSilk, IChainFactory, InferFieldInput, InferFieldOutput, InferInputI, InferInputO, IsAny, ListSilk, types_loom_d_exports as Loom, LoomDataLoader, LoomObjectType, MayGetter, MayPromise, Middleware, MiddlewareConfig, MiddlewareOperation, MiddlewareOptions, Mutation, MutationChainFactory, MutationFactory, MutationFactoryWithChain, MutationFactoryWithResolve, MutationOptions, NonNullSilk, NullableSilk, OPERATION_OBJECT_NAMES, ObjectChainResolver, OmitInUnion, OnlyMemoizationPayload, Operation, OperationType, Query, QueryChainFactory, QueryFactory, QueryFactoryWithChain, QueryFactoryWithResolve, QueryOptions, RequireKeys, ResolvableSubscription, Resolver, ResolverFactory, ResolverMeta, ResolverOptions, ResolverOptionsWithExtensions, ResolverOptionsWithParent, ResolverPayload, ResolvingFields, ResolvingFieldsOptions, ResolvingOptions, symbols_d_exports as SYMBOLS, SchemaWeaver, StandardSchemaV1, Subscription, SubscriptionChainFactory, SubscriptionFactory, SubscriptionFactoryWithChain, SubscriptionNeedResolve, SubscriptionOptions, ToExecutorProps, ValueOf, WeaverConfig, WeaverContext, applyMiddlewares, assignContextMap, capitalize, collectName, collectNames, createField, createInputParser, createMutation, createQuery, createSubscription, deepMerge, defaultSubscriptionResolve, ensureInputObjectType, ensureInputType, ensureInterfaceType, field, filterMiddlewares, getCacheType, getDeepResolvingFields, getFieldOptions, getGraphQLArgumentConfig, getGraphQLType, getMemoizationMap, getOperationOptions, getResolvingFields, getStandardValue, getSubscriptionOptions, initWeaverContext, inputToArgs, isOnlyMemoryPayload, isSchemaVendorWeaver, isSilk, listSilk, loom, mapValue, markErrorLocation, markLocation, meta, mutation, nonNullSilk, notNullish, nullableSilk, onlyMemoization, parseInputValue, parseResolvingFields, parseSilk, pascalCase, provideWeaverContext, query, resolver, screamingSnakeCase, silk, subscription, toArguments, toFieldMap, toObjMap, tryIn, weave, weaverContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gqloom/core",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "Create GraphQL schema and resolvers with TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",