@effect-gql/core 0.1.0 → 1.0.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/README.md +100 -0
- package/builder/index.cjs +1431 -0
- package/builder/index.cjs.map +1 -0
- package/builder/index.d.cts +259 -0
- package/{dist/builder/pipe-api.d.ts → builder/index.d.ts} +49 -21
- package/builder/index.js +1390 -0
- package/builder/index.js.map +1 -0
- package/index.cjs +3419 -0
- package/index.cjs.map +1 -0
- package/index.d.cts +523 -0
- package/index.d.ts +523 -0
- package/index.js +3242 -0
- package/index.js.map +1 -0
- package/package.json +19 -28
- package/schema-builder-Cvdq7Kz_.d.cts +963 -0
- package/schema-builder-Cvdq7Kz_.d.ts +963 -0
- package/server/index.cjs +1555 -0
- package/server/index.cjs.map +1 -0
- package/server/index.d.cts +680 -0
- package/server/index.d.ts +680 -0
- package/server/index.js +1524 -0
- package/server/index.js.map +1 -0
- package/dist/analyzer-extension.d.ts +0 -105
- package/dist/analyzer-extension.d.ts.map +0 -1
- package/dist/analyzer-extension.js +0 -137
- package/dist/analyzer-extension.js.map +0 -1
- package/dist/builder/execute.d.ts +0 -26
- package/dist/builder/execute.d.ts.map +0 -1
- package/dist/builder/execute.js +0 -104
- package/dist/builder/execute.js.map +0 -1
- package/dist/builder/field-builders.d.ts +0 -30
- package/dist/builder/field-builders.d.ts.map +0 -1
- package/dist/builder/field-builders.js +0 -200
- package/dist/builder/field-builders.js.map +0 -1
- package/dist/builder/index.d.ts +0 -7
- package/dist/builder/index.d.ts.map +0 -1
- package/dist/builder/index.js +0 -31
- package/dist/builder/index.js.map +0 -1
- package/dist/builder/pipe-api.d.ts.map +0 -1
- package/dist/builder/pipe-api.js +0 -151
- package/dist/builder/pipe-api.js.map +0 -1
- package/dist/builder/schema-builder.d.ts +0 -301
- package/dist/builder/schema-builder.d.ts.map +0 -1
- package/dist/builder/schema-builder.js +0 -566
- package/dist/builder/schema-builder.js.map +0 -1
- package/dist/builder/type-registry.d.ts +0 -80
- package/dist/builder/type-registry.d.ts.map +0 -1
- package/dist/builder/type-registry.js +0 -505
- package/dist/builder/type-registry.js.map +0 -1
- package/dist/builder/types.d.ts +0 -283
- package/dist/builder/types.d.ts.map +0 -1
- package/dist/builder/types.js +0 -3
- package/dist/builder/types.js.map +0 -1
- package/dist/cli/generate-schema.d.ts +0 -29
- package/dist/cli/generate-schema.d.ts.map +0 -1
- package/dist/cli/generate-schema.js +0 -233
- package/dist/cli/generate-schema.js.map +0 -1
- package/dist/cli/index.d.ts +0 -19
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -24
- package/dist/cli/index.js.map +0 -1
- package/dist/context.d.ts +0 -18
- package/dist/context.d.ts.map +0 -1
- package/dist/context.js +0 -11
- package/dist/context.js.map +0 -1
- package/dist/error.d.ts +0 -45
- package/dist/error.d.ts.map +0 -1
- package/dist/error.js +0 -29
- package/dist/error.js.map +0 -1
- package/dist/extensions.d.ts +0 -130
- package/dist/extensions.d.ts.map +0 -1
- package/dist/extensions.js +0 -78
- package/dist/extensions.js.map +0 -1
- package/dist/index.d.ts +0 -12
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -47
- package/dist/index.js.map +0 -1
- package/dist/loader.d.ts +0 -169
- package/dist/loader.d.ts.map +0 -1
- package/dist/loader.js +0 -237
- package/dist/loader.js.map +0 -1
- package/dist/resolver-context.d.ts +0 -154
- package/dist/resolver-context.d.ts.map +0 -1
- package/dist/resolver-context.js +0 -184
- package/dist/resolver-context.js.map +0 -1
- package/dist/schema-mapping.d.ts +0 -30
- package/dist/schema-mapping.d.ts.map +0 -1
- package/dist/schema-mapping.js +0 -280
- package/dist/schema-mapping.js.map +0 -1
- package/dist/server/cache-control.d.ts +0 -96
- package/dist/server/cache-control.d.ts.map +0 -1
- package/dist/server/cache-control.js +0 -308
- package/dist/server/cache-control.js.map +0 -1
- package/dist/server/complexity.d.ts +0 -165
- package/dist/server/complexity.d.ts.map +0 -1
- package/dist/server/complexity.js +0 -433
- package/dist/server/complexity.js.map +0 -1
- package/dist/server/config.d.ts +0 -66
- package/dist/server/config.d.ts.map +0 -1
- package/dist/server/config.js +0 -104
- package/dist/server/config.js.map +0 -1
- package/dist/server/graphiql.d.ts +0 -5
- package/dist/server/graphiql.d.ts.map +0 -1
- package/dist/server/graphiql.js +0 -43
- package/dist/server/graphiql.js.map +0 -1
- package/dist/server/index.d.ts +0 -18
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/index.js +0 -48
- package/dist/server/index.js.map +0 -1
- package/dist/server/router.d.ts +0 -79
- package/dist/server/router.d.ts.map +0 -1
- package/dist/server/router.js +0 -232
- package/dist/server/router.js.map +0 -1
- package/dist/server/schema-builder-extensions.d.ts +0 -42
- package/dist/server/schema-builder-extensions.d.ts.map +0 -1
- package/dist/server/schema-builder-extensions.js +0 -48
- package/dist/server/schema-builder-extensions.js.map +0 -1
- package/dist/server/sse-adapter.d.ts +0 -64
- package/dist/server/sse-adapter.d.ts.map +0 -1
- package/dist/server/sse-adapter.js +0 -227
- package/dist/server/sse-adapter.js.map +0 -1
- package/dist/server/sse-types.d.ts +0 -192
- package/dist/server/sse-types.d.ts.map +0 -1
- package/dist/server/sse-types.js +0 -63
- package/dist/server/sse-types.js.map +0 -1
- package/dist/server/ws-adapter.d.ts +0 -39
- package/dist/server/ws-adapter.d.ts.map +0 -1
- package/dist/server/ws-adapter.js +0 -247
- package/dist/server/ws-adapter.js.map +0 -1
- package/dist/server/ws-types.d.ts +0 -169
- package/dist/server/ws-types.d.ts.map +0 -1
- package/dist/server/ws-types.js +0 -11
- package/dist/server/ws-types.js.map +0 -1
- package/dist/server/ws-utils.d.ts +0 -42
- package/dist/server/ws-utils.d.ts.map +0 -1
- package/dist/server/ws-utils.js +0 -99
- package/dist/server/ws-utils.js.map +0 -1
- package/src/analyzer-extension.ts +0 -254
- package/src/builder/execute.ts +0 -153
- package/src/builder/field-builders.ts +0 -322
- package/src/builder/index.ts +0 -48
- package/src/builder/pipe-api.ts +0 -312
- package/src/builder/schema-builder.ts +0 -970
- package/src/builder/type-registry.ts +0 -670
- package/src/builder/types.ts +0 -305
- package/src/context.ts +0 -23
- package/src/error.ts +0 -32
- package/src/extensions.ts +0 -240
- package/src/index.ts +0 -32
- package/src/loader.ts +0 -363
- package/src/resolver-context.ts +0 -253
- package/src/schema-mapping.ts +0 -307
- package/src/server/cache-control.ts +0 -590
- package/src/server/complexity.ts +0 -774
- package/src/server/config.ts +0 -174
- package/src/server/graphiql.ts +0 -38
- package/src/server/index.ts +0 -96
- package/src/server/router.ts +0 -432
- package/src/server/schema-builder-extensions.ts +0 -51
- package/src/server/sse-adapter.ts +0 -327
- package/src/server/sse-types.ts +0 -234
- package/src/server/ws-adapter.ts +0 -355
- package/src/server/ws-types.ts +0 -192
- package/src/server/ws-utils.ts +0 -136
package/dist/builder/pipe-api.js
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.compose = exports.field = exports.subscription = exports.mutation = exports.query = exports.extension = exports.middleware = exports.directive = exports.inputType = exports.unionType = exports.enumType = exports.interfaceType = exports.objectType = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Add an object type to the schema builder (pipe-able)
|
|
6
|
-
* Name is optional if schema is TaggedStruct, TaggedClass, or Schema.Class
|
|
7
|
-
*/
|
|
8
|
-
const objectType = (config) => (builder) => builder.objectType(config);
|
|
9
|
-
exports.objectType = objectType;
|
|
10
|
-
/**
|
|
11
|
-
* Add an interface type to the schema builder (pipe-able)
|
|
12
|
-
* Name is optional if schema is TaggedStruct, TaggedClass, or Schema.Class
|
|
13
|
-
*/
|
|
14
|
-
const interfaceType = (config) => (builder) => builder.interfaceType(config);
|
|
15
|
-
exports.interfaceType = interfaceType;
|
|
16
|
-
/**
|
|
17
|
-
* Add an enum type to the schema builder (pipe-able)
|
|
18
|
-
*/
|
|
19
|
-
const enumType = (config) => (builder) => builder.enumType(config);
|
|
20
|
-
exports.enumType = enumType;
|
|
21
|
-
/**
|
|
22
|
-
* Add a union type to the schema builder (pipe-able)
|
|
23
|
-
*/
|
|
24
|
-
const unionType = (config) => (builder) => builder.unionType(config);
|
|
25
|
-
exports.unionType = unionType;
|
|
26
|
-
/**
|
|
27
|
-
* Add an input type to the schema builder (pipe-able)
|
|
28
|
-
* Name is optional if schema is TaggedStruct, TaggedClass, or Schema.Class
|
|
29
|
-
*/
|
|
30
|
-
const inputType = (config) => (builder) => builder.inputType(config);
|
|
31
|
-
exports.inputType = inputType;
|
|
32
|
-
/**
|
|
33
|
-
* Register a directive (pipe-able)
|
|
34
|
-
*
|
|
35
|
-
* @param config - Directive configuration
|
|
36
|
-
* @param config.name - The directive name (without @)
|
|
37
|
-
* @param config.description - Optional description
|
|
38
|
-
* @param config.locations - Array of DirectiveLocation values where this directive can be applied
|
|
39
|
-
* @param config.args - Optional Effect Schema for directive arguments
|
|
40
|
-
* @param config.apply - Optional function to transform resolver Effects (for executable directives)
|
|
41
|
-
*/
|
|
42
|
-
const directive = (config) => (builder) => builder.directive(config);
|
|
43
|
-
exports.directive = directive;
|
|
44
|
-
/**
|
|
45
|
-
* Register a middleware (pipe-able)
|
|
46
|
-
*
|
|
47
|
-
* Middleware wraps all resolvers (or those matching a pattern) and executes
|
|
48
|
-
* in an "onion" model - first registered middleware is the outermost layer.
|
|
49
|
-
*
|
|
50
|
-
* @param config.name - Middleware name (for debugging/logging)
|
|
51
|
-
* @param config.description - Optional description
|
|
52
|
-
* @param config.match - Optional predicate to filter which fields this applies to
|
|
53
|
-
* @param config.apply - Function that transforms the resolver Effect
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```typescript
|
|
57
|
-
* GraphQLSchemaBuilder.empty.pipe(
|
|
58
|
-
* middleware({
|
|
59
|
-
* name: "logging",
|
|
60
|
-
* apply: (effect, ctx) => Effect.gen(function*() {
|
|
61
|
-
* yield* Effect.logInfo(`Resolving ${ctx.info.fieldName}`)
|
|
62
|
-
* return yield* effect
|
|
63
|
-
* })
|
|
64
|
-
* }),
|
|
65
|
-
* middleware({
|
|
66
|
-
* name: "adminOnly",
|
|
67
|
-
* match: (info) => info.fieldName.startsWith("admin"),
|
|
68
|
-
* apply: (effect) => Effect.gen(function*() {
|
|
69
|
-
* const auth = yield* AuthService
|
|
70
|
-
* yield* auth.requireAdmin()
|
|
71
|
-
* return yield* effect
|
|
72
|
-
* })
|
|
73
|
-
* })
|
|
74
|
-
* )
|
|
75
|
-
* ```
|
|
76
|
-
*/
|
|
77
|
-
const middleware = (config) => (builder) => builder.middleware(config);
|
|
78
|
-
exports.middleware = middleware;
|
|
79
|
-
/**
|
|
80
|
-
* Register an extension (pipe-able)
|
|
81
|
-
*
|
|
82
|
-
* Extensions provide lifecycle hooks that run at each phase of request processing
|
|
83
|
-
* (parse, validate, execute) and can contribute data to the response's extensions field.
|
|
84
|
-
*
|
|
85
|
-
* @param config.name - Extension name (for debugging/logging)
|
|
86
|
-
* @param config.description - Optional description
|
|
87
|
-
* @param config.onParse - Called after query parsing
|
|
88
|
-
* @param config.onValidate - Called after validation
|
|
89
|
-
* @param config.onExecuteStart - Called before execution begins
|
|
90
|
-
* @param config.onExecuteEnd - Called after execution completes
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
* ```typescript
|
|
94
|
-
* GraphQLSchemaBuilder.empty.pipe(
|
|
95
|
-
* extension({
|
|
96
|
-
* name: "tracing",
|
|
97
|
-
* onExecuteStart: () => Effect.gen(function*() {
|
|
98
|
-
* const ext = yield* ExtensionsService
|
|
99
|
-
* yield* ext.set("tracing", { startTime: Date.now() })
|
|
100
|
-
* }),
|
|
101
|
-
* onExecuteEnd: () => Effect.gen(function*() {
|
|
102
|
-
* const ext = yield* ExtensionsService
|
|
103
|
-
* yield* ext.merge("tracing", { endTime: Date.now() })
|
|
104
|
-
* }),
|
|
105
|
-
* })
|
|
106
|
-
* )
|
|
107
|
-
* ```
|
|
108
|
-
*/
|
|
109
|
-
const extension = (config) => (builder) => builder.extension(config);
|
|
110
|
-
exports.extension = extension;
|
|
111
|
-
/**
|
|
112
|
-
* Add a query field to the schema builder (pipe-able)
|
|
113
|
-
*/
|
|
114
|
-
const query = (name, config) => (builder) => builder.query(name, config);
|
|
115
|
-
exports.query = query;
|
|
116
|
-
/**
|
|
117
|
-
* Add a mutation field to the schema builder (pipe-able)
|
|
118
|
-
*/
|
|
119
|
-
const mutation = (name, config) => (builder) => builder.mutation(name, config);
|
|
120
|
-
exports.mutation = mutation;
|
|
121
|
-
/**
|
|
122
|
-
* Add a subscription field to the schema builder (pipe-able)
|
|
123
|
-
*
|
|
124
|
-
* Subscriptions return a Stream that yields values over time.
|
|
125
|
-
*
|
|
126
|
-
* @example
|
|
127
|
-
* ```typescript
|
|
128
|
-
* GraphQLSchemaBuilder.empty.pipe(
|
|
129
|
-
* subscription("userCreated", {
|
|
130
|
-
* type: User,
|
|
131
|
-
* subscribe: Effect.gen(function*() {
|
|
132
|
-
* const pubsub = yield* PubSubService
|
|
133
|
-
* return pubsub.subscribe("USER_CREATED")
|
|
134
|
-
* }),
|
|
135
|
-
* })
|
|
136
|
-
* )
|
|
137
|
-
* ```
|
|
138
|
-
*/
|
|
139
|
-
const subscription = (name, config) => (builder) => builder.subscription(name, config);
|
|
140
|
-
exports.subscription = subscription;
|
|
141
|
-
/**
|
|
142
|
-
* Add a field to an existing object type (pipe-able)
|
|
143
|
-
*/
|
|
144
|
-
const field = (typeName, fieldName, config) => (builder) => builder.field(typeName, fieldName, config);
|
|
145
|
-
exports.field = field;
|
|
146
|
-
/**
|
|
147
|
-
* Compose multiple schema operations (helper for arrays)
|
|
148
|
-
*/
|
|
149
|
-
const compose = (...operations) => (builder) => operations.reduce((b, op) => op(b), builder);
|
|
150
|
-
exports.compose = compose;
|
|
151
|
-
//# sourceMappingURL=pipe-api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pipe-api.js","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,CAAC,CAAC,EAAE,OAAO,CAAC,CAAA;AAHnC,QAAA,OAAO,WAG4B"}
|
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
import { Effect, Pipeable } from "effect";
|
|
2
|
-
import * as S from "effect/Schema";
|
|
3
|
-
import { GraphQLSchema, DirectiveLocation } from "graphql";
|
|
4
|
-
import type { DirectiveApplication, MiddlewareContext, CacheHint } from "./types";
|
|
5
|
-
import type { GraphQLExtension, ExecutionArgs } from "../extensions";
|
|
6
|
-
import type { GraphQLResolveInfo, DocumentNode, ExecutionResult, GraphQLError as GQLError } from "graphql";
|
|
7
|
-
import type { FieldComplexity, FieldComplexityMap } from "../server/complexity";
|
|
8
|
-
import type { CacheHintMap } from "../server/cache-control";
|
|
9
|
-
/**
|
|
10
|
-
* GraphQL Schema Builder with type-safe service requirements (Layer-per-Request Pattern)
|
|
11
|
-
*
|
|
12
|
-
* The type parameter R accumulates all service requirements from resolvers.
|
|
13
|
-
* Unlike the runtime-in-context approach, this pattern builds the schema without
|
|
14
|
-
* executing any Effects. At request time, you provide a Layer with all required services.
|
|
15
|
-
*/
|
|
16
|
-
export declare class GraphQLSchemaBuilder<R = never> implements Pipeable.Pipeable {
|
|
17
|
-
private readonly state;
|
|
18
|
-
private constructor();
|
|
19
|
-
/**
|
|
20
|
-
* Pipeable interface implementation - enables fluent .pipe() syntax
|
|
21
|
-
*/
|
|
22
|
-
pipe<A>(this: A): A;
|
|
23
|
-
pipe<A, B>(this: A, ab: (a: A) => B): B;
|
|
24
|
-
pipe<A, B, C>(this: A, ab: (a: A) => B, bc: (b: B) => C): C;
|
|
25
|
-
pipe<A, B, C, D>(this: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D): D;
|
|
26
|
-
pipe<A, B, C, D, E>(this: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E): E;
|
|
27
|
-
pipe<A, B, C, D, E, F>(this: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F): F;
|
|
28
|
-
pipe<A, B, C, D, E, F, G>(this: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G): G;
|
|
29
|
-
pipe<A, B, C, D, E, F, G, H>(this: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H): H;
|
|
30
|
-
pipe<A, B, C, D, E, F, G, H, I>(this: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I): I;
|
|
31
|
-
/**
|
|
32
|
-
* Create an empty schema builder
|
|
33
|
-
*/
|
|
34
|
-
static readonly empty: GraphQLSchemaBuilder<never>;
|
|
35
|
-
/**
|
|
36
|
-
* Create a new builder with updated state
|
|
37
|
-
*/
|
|
38
|
-
private with;
|
|
39
|
-
/**
|
|
40
|
-
* Add a query field
|
|
41
|
-
*/
|
|
42
|
-
query<A, E, R2, Args = void>(name: string, config: {
|
|
43
|
-
type: S.Schema<A, any, any>;
|
|
44
|
-
args?: S.Schema<Args, any, any>;
|
|
45
|
-
description?: string;
|
|
46
|
-
directives?: readonly DirectiveApplication[];
|
|
47
|
-
/**
|
|
48
|
-
* Complexity cost of this field for query complexity limiting.
|
|
49
|
-
* Can be a static number or a function that receives the resolved arguments.
|
|
50
|
-
*/
|
|
51
|
-
complexity?: FieldComplexity;
|
|
52
|
-
/**
|
|
53
|
-
* Cache control hint for this field.
|
|
54
|
-
* Used to compute HTTP Cache-Control headers for the response.
|
|
55
|
-
*/
|
|
56
|
-
cacheControl?: CacheHint;
|
|
57
|
-
resolve: (args: Args) => Effect.Effect<A, E, R2>;
|
|
58
|
-
}): GraphQLSchemaBuilder<R | R2>;
|
|
59
|
-
/**
|
|
60
|
-
* Add a mutation field
|
|
61
|
-
*/
|
|
62
|
-
mutation<A, E, R2, Args = void>(name: string, config: {
|
|
63
|
-
type: S.Schema<A, any, any>;
|
|
64
|
-
args?: S.Schema<Args, any, any>;
|
|
65
|
-
description?: string;
|
|
66
|
-
directives?: readonly DirectiveApplication[];
|
|
67
|
-
/**
|
|
68
|
-
* Complexity cost of this field for query complexity limiting.
|
|
69
|
-
* Can be a static number or a function that receives the resolved arguments.
|
|
70
|
-
*/
|
|
71
|
-
complexity?: FieldComplexity;
|
|
72
|
-
resolve: (args: Args) => Effect.Effect<A, E, R2>;
|
|
73
|
-
}): GraphQLSchemaBuilder<R | R2>;
|
|
74
|
-
/**
|
|
75
|
-
* Add a subscription field
|
|
76
|
-
*
|
|
77
|
-
* Subscriptions return a Stream that yields values over time.
|
|
78
|
-
* The subscribe function returns an Effect that produces a Stream.
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* ```typescript
|
|
82
|
-
* builder.subscription("userCreated", {
|
|
83
|
-
* type: User,
|
|
84
|
-
* subscribe: Effect.gen(function*() {
|
|
85
|
-
* const pubsub = yield* PubSubService
|
|
86
|
-
* return pubsub.subscribe("USER_CREATED")
|
|
87
|
-
* }),
|
|
88
|
-
* })
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
subscription<A, E, R2, Args = void>(name: string, config: {
|
|
92
|
-
type: S.Schema<A, any, any>;
|
|
93
|
-
args?: S.Schema<Args, any, any>;
|
|
94
|
-
description?: string;
|
|
95
|
-
directives?: readonly DirectiveApplication[];
|
|
96
|
-
/**
|
|
97
|
-
* Complexity cost of this subscription for query complexity limiting.
|
|
98
|
-
* Can be a static number or a function that receives the resolved arguments.
|
|
99
|
-
*/
|
|
100
|
-
complexity?: FieldComplexity;
|
|
101
|
-
/**
|
|
102
|
-
* Cache control hint for this subscription.
|
|
103
|
-
* Note: Subscriptions are typically not cached, but this can be used for initial response hints.
|
|
104
|
-
*/
|
|
105
|
-
cacheControl?: CacheHint;
|
|
106
|
-
subscribe: (args: Args) => Effect.Effect<import("effect").Stream.Stream<A, E, R2>, E, R2>;
|
|
107
|
-
resolve?: (value: A, args: Args) => Effect.Effect<A, E, R2>;
|
|
108
|
-
}): GraphQLSchemaBuilder<R | R2>;
|
|
109
|
-
/**
|
|
110
|
-
* Register an object type from a schema
|
|
111
|
-
*/
|
|
112
|
-
objectType<A, R2 = never>(config: {
|
|
113
|
-
name?: string;
|
|
114
|
-
schema: S.Schema<A, any, any>;
|
|
115
|
-
implements?: readonly string[];
|
|
116
|
-
directives?: readonly DirectiveApplication[];
|
|
117
|
-
/**
|
|
118
|
-
* Default cache control hint for all fields returning this type.
|
|
119
|
-
* Can be overridden by field-level cacheControl.
|
|
120
|
-
*/
|
|
121
|
-
cacheControl?: CacheHint;
|
|
122
|
-
fields?: Record<string, {
|
|
123
|
-
type: S.Schema<any, any, any>;
|
|
124
|
-
args?: S.Schema<any, any, any>;
|
|
125
|
-
description?: string;
|
|
126
|
-
directives?: readonly DirectiveApplication[];
|
|
127
|
-
/**
|
|
128
|
-
* Complexity cost of this field for query complexity limiting.
|
|
129
|
-
*/
|
|
130
|
-
complexity?: FieldComplexity;
|
|
131
|
-
/**
|
|
132
|
-
* Cache control hint for this field.
|
|
133
|
-
*/
|
|
134
|
-
cacheControl?: CacheHint;
|
|
135
|
-
resolve: (parent: A, args: any) => Effect.Effect<any, any, any>;
|
|
136
|
-
}>;
|
|
137
|
-
}): GraphQLSchemaBuilder<R | R2>;
|
|
138
|
-
/**
|
|
139
|
-
* Register an interface type from a schema
|
|
140
|
-
*/
|
|
141
|
-
interfaceType(config: {
|
|
142
|
-
name?: string;
|
|
143
|
-
schema: S.Schema<any, any, any>;
|
|
144
|
-
resolveType?: (value: any) => string;
|
|
145
|
-
directives?: readonly DirectiveApplication[];
|
|
146
|
-
}): GraphQLSchemaBuilder<R>;
|
|
147
|
-
/**
|
|
148
|
-
* Register an enum type
|
|
149
|
-
*/
|
|
150
|
-
enumType(config: {
|
|
151
|
-
name: string;
|
|
152
|
-
values: readonly string[];
|
|
153
|
-
description?: string;
|
|
154
|
-
directives?: readonly DirectiveApplication[];
|
|
155
|
-
}): GraphQLSchemaBuilder<R>;
|
|
156
|
-
/**
|
|
157
|
-
* Register a union type
|
|
158
|
-
*/
|
|
159
|
-
unionType(config: {
|
|
160
|
-
name: string;
|
|
161
|
-
types: readonly string[];
|
|
162
|
-
resolveType?: (value: any) => string;
|
|
163
|
-
directives?: readonly DirectiveApplication[];
|
|
164
|
-
}): GraphQLSchemaBuilder<R>;
|
|
165
|
-
/**
|
|
166
|
-
* Register an input type
|
|
167
|
-
*/
|
|
168
|
-
inputType(config: {
|
|
169
|
-
name?: string;
|
|
170
|
-
schema: S.Schema<any, any, any>;
|
|
171
|
-
description?: string;
|
|
172
|
-
directives?: readonly DirectiveApplication[];
|
|
173
|
-
}): GraphQLSchemaBuilder<R>;
|
|
174
|
-
/**
|
|
175
|
-
* Register a directive
|
|
176
|
-
*/
|
|
177
|
-
directive<Args = void, R2 = never>(config: {
|
|
178
|
-
name: string;
|
|
179
|
-
description?: string;
|
|
180
|
-
locations: readonly DirectiveLocation[];
|
|
181
|
-
args?: S.Schema<Args, any, any>;
|
|
182
|
-
apply?: (args: Args) => <A, E, R3>(effect: Effect.Effect<A, E, R3>) => Effect.Effect<A, E, R2 | R3>;
|
|
183
|
-
}): GraphQLSchemaBuilder<R | R2>;
|
|
184
|
-
/**
|
|
185
|
-
* Register a middleware
|
|
186
|
-
*
|
|
187
|
-
* Middleware wraps all resolvers (or those matching a pattern) and executes
|
|
188
|
-
* in an "onion" model - first registered middleware is the outermost layer.
|
|
189
|
-
*
|
|
190
|
-
* @param config.name - Middleware name (for debugging/logging)
|
|
191
|
-
* @param config.description - Optional description
|
|
192
|
-
* @param config.match - Optional predicate to filter which fields this applies to
|
|
193
|
-
* @param config.apply - Function that transforms the resolver Effect
|
|
194
|
-
*
|
|
195
|
-
* @example
|
|
196
|
-
* ```typescript
|
|
197
|
-
* builder.middleware({
|
|
198
|
-
* name: "logging",
|
|
199
|
-
* apply: (effect, ctx) => Effect.gen(function*() {
|
|
200
|
-
* yield* Effect.logInfo(`Resolving ${ctx.info.fieldName}`)
|
|
201
|
-
* const start = Date.now()
|
|
202
|
-
* const result = yield* effect
|
|
203
|
-
* yield* Effect.logInfo(`Resolved in ${Date.now() - start}ms`)
|
|
204
|
-
* return result
|
|
205
|
-
* })
|
|
206
|
-
* })
|
|
207
|
-
* ```
|
|
208
|
-
*/
|
|
209
|
-
middleware<R2 = never>(config: {
|
|
210
|
-
name: string;
|
|
211
|
-
description?: string;
|
|
212
|
-
match?: (info: GraphQLResolveInfo) => boolean;
|
|
213
|
-
apply: <A, E, R3>(effect: Effect.Effect<A, E, R3>, context: MiddlewareContext) => Effect.Effect<A, E, R2 | R3>;
|
|
214
|
-
}): GraphQLSchemaBuilder<R | R2>;
|
|
215
|
-
/**
|
|
216
|
-
* Register an extension
|
|
217
|
-
*
|
|
218
|
-
* Extensions provide lifecycle hooks that run at each phase of request processing
|
|
219
|
-
* (parse, validate, execute) and can contribute data to the response's extensions field.
|
|
220
|
-
*
|
|
221
|
-
* @param config.name - Extension name (for debugging/logging)
|
|
222
|
-
* @param config.description - Optional description
|
|
223
|
-
* @param config.onParse - Called after query parsing
|
|
224
|
-
* @param config.onValidate - Called after validation
|
|
225
|
-
* @param config.onExecuteStart - Called before execution begins
|
|
226
|
-
* @param config.onExecuteEnd - Called after execution completes
|
|
227
|
-
*
|
|
228
|
-
* @example
|
|
229
|
-
* ```typescript
|
|
230
|
-
* builder.extension({
|
|
231
|
-
* name: "tracing",
|
|
232
|
-
* onExecuteStart: () => Effect.gen(function*() {
|
|
233
|
-
* const ext = yield* ExtensionsService
|
|
234
|
-
* yield* ext.set("tracing", { startTime: Date.now() })
|
|
235
|
-
* }),
|
|
236
|
-
* onExecuteEnd: () => Effect.gen(function*() {
|
|
237
|
-
* const ext = yield* ExtensionsService
|
|
238
|
-
* yield* ext.merge("tracing", { endTime: Date.now() })
|
|
239
|
-
* }),
|
|
240
|
-
* })
|
|
241
|
-
* ```
|
|
242
|
-
*/
|
|
243
|
-
extension<R2 = never>(config: {
|
|
244
|
-
name: string;
|
|
245
|
-
description?: string;
|
|
246
|
-
onParse?: (source: string, document: DocumentNode) => Effect.Effect<void, never, R2>;
|
|
247
|
-
onValidate?: (document: DocumentNode, errors: readonly GQLError[]) => Effect.Effect<void, never, R2>;
|
|
248
|
-
onExecuteStart?: (args: ExecutionArgs) => Effect.Effect<void, never, R2>;
|
|
249
|
-
onExecuteEnd?: (result: ExecutionResult) => Effect.Effect<void, never, R2>;
|
|
250
|
-
}): GraphQLSchemaBuilder<R | R2>;
|
|
251
|
-
/**
|
|
252
|
-
* Get the registered extensions for use by the execution layer
|
|
253
|
-
*/
|
|
254
|
-
getExtensions(): readonly GraphQLExtension<any>[];
|
|
255
|
-
/**
|
|
256
|
-
* Add a computed/relational field to an object type
|
|
257
|
-
*/
|
|
258
|
-
field<Parent, A, E, R2, Args = void>(typeName: string, fieldName: string, config: {
|
|
259
|
-
type: S.Schema<A, any, any>;
|
|
260
|
-
args?: S.Schema<Args, any, any>;
|
|
261
|
-
description?: string;
|
|
262
|
-
directives?: readonly DirectiveApplication[];
|
|
263
|
-
/**
|
|
264
|
-
* Complexity cost of this field for query complexity limiting.
|
|
265
|
-
* Can be a static number or a function that receives the resolved arguments.
|
|
266
|
-
*/
|
|
267
|
-
complexity?: FieldComplexity;
|
|
268
|
-
/**
|
|
269
|
-
* Cache control hint for this field.
|
|
270
|
-
* Used to compute HTTP Cache-Control headers for the response.
|
|
271
|
-
*/
|
|
272
|
-
cacheControl?: CacheHint;
|
|
273
|
-
resolve: (parent: Parent, args: Args) => Effect.Effect<A, E, R2>;
|
|
274
|
-
}): GraphQLSchemaBuilder<R | R2>;
|
|
275
|
-
/**
|
|
276
|
-
* Get the field complexity map for use in complexity validation.
|
|
277
|
-
* Maps "TypeName.fieldName" to the complexity value or function.
|
|
278
|
-
*/
|
|
279
|
-
getFieldComplexities(): FieldComplexityMap;
|
|
280
|
-
/**
|
|
281
|
-
* Get the cache hint map for use in cache control calculation.
|
|
282
|
-
* Maps "TypeName.fieldName" to the cache hint for field-level hints,
|
|
283
|
-
* or "TypeName" to the cache hint for type-level hints.
|
|
284
|
-
*/
|
|
285
|
-
getCacheHints(): CacheHintMap;
|
|
286
|
-
/**
|
|
287
|
-
* Build the GraphQL schema (no services required)
|
|
288
|
-
*/
|
|
289
|
-
buildSchema(): GraphQLSchema;
|
|
290
|
-
private buildDirectiveRegistry;
|
|
291
|
-
private buildEnumRegistry;
|
|
292
|
-
private buildInputRegistry;
|
|
293
|
-
private buildInterfaceRegistry;
|
|
294
|
-
private buildTypeAndUnionRegistries;
|
|
295
|
-
private createFieldBuilderContext;
|
|
296
|
-
private buildQueryFields;
|
|
297
|
-
private buildMutationFields;
|
|
298
|
-
private buildSubscriptionFields;
|
|
299
|
-
private assembleSchema;
|
|
300
|
-
}
|
|
301
|
-
//# sourceMappingURL=schema-builder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema-builder.d.ts","sourceRoot":"","sources":["../../src/builder/schema-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,KAAK,CAAC,MAAM,eAAe,CAAA;AAClC,OAAO,EACL,aAAa,EAQb,iBAAiB,EAClB,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAQV,oBAAoB,EAIpB,iBAAiB,EACjB,SAAS,EACV,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AACpE,OAAO,KAAK,EACV,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,YAAY,IAAI,QAAQ,EACzB,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC/E,OAAO,KAAK,EAA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