@fougere/adapter-graphql 0.6.0-alpha.0 → 0.8.0-alpha.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/app.d.ts +3 -26
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +2 -20
- package/dist/app.js.map +1 -1
- package/dist/auto-register.d.ts +8 -18
- package/dist/auto-register.d.ts.map +1 -1
- package/dist/auto-register.js +18 -59
- package/dist/auto-register.js.map +1 -1
- package/dist/index.d.ts +1 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -9
- package/dist/index.js.map +1 -1
- package/dist/pothos-entry.d.ts +1 -7
- package/dist/pothos-entry.d.ts.map +1 -1
- package/dist/pothos-entry.js +1 -7
- package/dist/pothos-entry.js.map +1 -1
- package/dist/pothos.d.ts +10 -76
- package/dist/pothos.d.ts.map +1 -1
- package/dist/pothos.js +42 -143
- package/dist/pothos.js.map +1 -1
- package/dist/serve.d.ts +2 -19
- package/dist/serve.d.ts.map +1 -1
- package/dist/serve.js +2 -20
- package/dist/serve.js.map +1 -1
- package/package.json +3 -3
- package/src/app.ts +3 -26
- package/src/auto-register.ts +24 -75
- package/src/index.ts +1 -9
- package/src/pothos-entry.ts +1 -7
- package/src/pothos.ts +48 -154
- package/src/serve.ts +3 -26
package/dist/app.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { type ExecutionResult, type GraphQLSchema } from 'graphql';
|
|
2
2
|
import { registerAll } from './auto-register.js';
|
|
3
|
-
/**
|
|
4
|
-
* What a GraphQL request carries, whatever host read it.
|
|
5
|
-
*
|
|
6
|
-
* The same shape a door hands in, so a host translates its own request once and this
|
|
7
|
-
* package never learns what an HTTP framework is.
|
|
8
|
-
*/
|
|
3
|
+
/** What a GraphQL request carries, whatever host read it. */
|
|
9
4
|
export interface AppQuery {
|
|
10
5
|
query: string;
|
|
11
6
|
variables?: Record<string, unknown>;
|
|
@@ -17,27 +12,9 @@ export interface AppQuery {
|
|
|
17
12
|
}
|
|
18
13
|
/** The shape this package needs of an app: its fronds, and how to reach a façade. */
|
|
19
14
|
type AppLike = Parameters<typeof registerAll>[1];
|
|
20
|
-
/**
|
|
21
|
-
* The app's schema, derived and kept.
|
|
22
|
-
*
|
|
23
|
-
* Every line of the derivation is convention — a builder, the two root types, and the
|
|
24
|
-
* entities the app already scanned — so nothing an app could usefully say differently.
|
|
25
|
-
* Declaring `adapters: { graphql: true }` is the whole configuration.
|
|
26
|
-
*
|
|
27
|
-
* It lives HERE, beside Pothos, and not in the host package that used to hold it. The
|
|
28
|
-
* separation had a cost no comment could pay: `graphql` guards its types with
|
|
29
|
-
* `instanceOf`, so a schema built by one loaded copy is refused by another with *"from
|
|
30
|
-
* another module or realm"*. Building and executing across a package boundary made two
|
|
31
|
-
* copies possible; on this side of it there is one.
|
|
32
|
-
*/
|
|
15
|
+
/** The app's schema, derived and kept. */
|
|
33
16
|
export declare function schemaOf(app: AppLike, surface?: string): GraphQLSchema;
|
|
34
|
-
/**
|
|
35
|
-
* Execute a query against the app's own operations.
|
|
36
|
-
*
|
|
37
|
-
* Returns the GraphQL result as it is: a GraphQL error is not a transport error, and the
|
|
38
|
-
* errors ride in the body where a client is required to look for them. Turning that into
|
|
39
|
-
* a status belongs to whichever door asked.
|
|
40
|
-
*/
|
|
17
|
+
/** Execute a query against the app's own operations. */
|
|
41
18
|
export declare function executeOn(app: AppLike, request: AppQuery): Promise<ExecutionResult>;
|
|
42
19
|
export {};
|
|
43
20
|
//# sourceMappingURL=app.d.ts.map
|
package/dist/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,6DAA6D;AAC7D,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED,qFAAqF;AACrF,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AAKjD,0CAA0C;AAC1C,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,CAgBtE;AAED,wDAAwD;AACxD,wBAAsB,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,eAAe,CAAC,CAQzF"}
|
package/dist/app.js
CHANGED
|
@@ -3,19 +3,7 @@ import { graphql } from 'graphql';
|
|
|
3
3
|
import { registerAll } from './auto-register.js';
|
|
4
4
|
/** One executable schema per (app, audience) — building it walks every entity. */
|
|
5
5
|
const schemas = new WeakMap();
|
|
6
|
-
/**
|
|
7
|
-
* The app's schema, derived and kept.
|
|
8
|
-
*
|
|
9
|
-
* Every line of the derivation is convention — a builder, the two root types, and the
|
|
10
|
-
* entities the app already scanned — so nothing an app could usefully say differently.
|
|
11
|
-
* Declaring `adapters: { graphql: true }` is the whole configuration.
|
|
12
|
-
*
|
|
13
|
-
* It lives HERE, beside Pothos, and not in the host package that used to hold it. The
|
|
14
|
-
* separation had a cost no comment could pay: `graphql` guards its types with
|
|
15
|
-
* `instanceOf`, so a schema built by one loaded copy is refused by another with *"from
|
|
16
|
-
* another module or realm"*. Building and executing across a package boundary made two
|
|
17
|
-
* copies possible; on this side of it there is one.
|
|
18
|
-
*/
|
|
6
|
+
/** The app's schema, derived and kept. */
|
|
19
7
|
export function schemaOf(app, surface) {
|
|
20
8
|
const perApp = schemas.get(app) ?? new Map();
|
|
21
9
|
schemas.set(app, perApp);
|
|
@@ -31,13 +19,7 @@ export function schemaOf(app, surface) {
|
|
|
31
19
|
perApp.set(key, schema);
|
|
32
20
|
return schema;
|
|
33
21
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Execute a query against the app's own operations.
|
|
36
|
-
*
|
|
37
|
-
* Returns the GraphQL result as it is: a GraphQL error is not a transport error, and the
|
|
38
|
-
* errors ride in the body where a client is required to look for them. Turning that into
|
|
39
|
-
* a status belongs to whichever door asked.
|
|
40
|
-
*/
|
|
22
|
+
/** Execute a query against the app's own operations. */
|
|
41
23
|
export async function executeOn(app, request) {
|
|
42
24
|
return graphql({
|
|
43
25
|
schema: schemaOf(app, request.surface),
|
package/dist/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAA4C,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAA4C,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAgBjD,kFAAkF;AAClF,MAAM,OAAO,GAAG,IAAI,OAAO,E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@@ -1,23 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Auto-register GraphQL types and operations from a fougere App.
|
|
3
|
-
*
|
|
4
|
-
* Reads scanned entities + handler facades and registers
|
|
5
|
-
* types, inputs, queries and mutations automatically.
|
|
6
|
-
* Respects handler method-based contracts and surfaces config.
|
|
7
|
-
*
|
|
8
|
-
* Relations (ref/many) are auto-wired between registered types.
|
|
9
|
-
*/
|
|
1
|
+
/** Auto-register GraphQL types and operations from a fougere App. */
|
|
10
2
|
import type SchemaBuilder from '@pothos/core';
|
|
11
|
-
import type { SchemaView
|
|
3
|
+
import type { SchemaView } from '@fougere/schema';
|
|
12
4
|
import { type OperationMeta } from './pothos.js';
|
|
13
5
|
interface EntityEntry {
|
|
14
6
|
name: string;
|
|
15
7
|
/** A live class in-process, a card from a frond whose class never crossed. */
|
|
16
|
-
entityClass:
|
|
8
|
+
entityClass: SchemaView;
|
|
17
9
|
exposed?: boolean;
|
|
18
10
|
}
|
|
19
11
|
interface HandlerEntry {
|
|
20
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The name the door answers to — `PostHandler` → `post`. NOT an entity name: a handler may carry
|
|
14
|
+
* none.
|
|
15
|
+
*/
|
|
21
16
|
address: string;
|
|
22
17
|
operations: Map<string, OperationMeta>;
|
|
23
18
|
surface?: string;
|
|
@@ -58,12 +53,7 @@ interface AppLike {
|
|
|
58
53
|
facadeFor(entity: string, surface?: string): Record<string, Function> | undefined;
|
|
59
54
|
/** Canonical operation table produced by core. */
|
|
60
55
|
operationsFor(entity: string, surface?: string): Map<string, OperationMeta> | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* The presenter of an entity — `undefined` when none. Asked for rather than
|
|
63
|
-
* resolved by a key spelled here: this adapter used to build `${Name}Presenter`
|
|
64
|
-
* itself, and a convention respelled in two places drifts silently on the day it
|
|
65
|
-
* changes, exactly as `facadeFor` exists to prevent for doors.
|
|
66
|
-
*/
|
|
56
|
+
/** The presenter of an entity — `undefined` when none. */
|
|
67
57
|
presenterFor(entity: string): unknown | undefined;
|
|
68
58
|
}
|
|
69
59
|
export interface RegisterAllOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-register.d.ts","sourceRoot":"","sources":["../src/auto-register.ts"],"names":[],"mappings":"AACA
|
|
1
|
+
{"version":3,"file":"auto-register.d.ts","sourceRoot":"","sources":["../src/auto-register.ts"],"names":[],"mappings":"AACA,qEAAqE;AACrE,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAU,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,EAAoC,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAyFnF,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,WAAW,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,YAAY;IACpB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,0FAA0F;IAC1F,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,UAAU,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACjD;AAED,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,cAAc;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,kBAAkB,EAAE,CAAC;IAChC,2EAA2E;IAC3E,KAAK,CAAC,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ldSet, Role } from '@fougere/schema';
|
|
2
|
-
import {
|
|
2
|
+
import { Shapes } from '@fougere/schema';
|
|
3
3
|
import { registerType, registerOperations } from './pothos.js';
|
|
4
|
-
/**
|
|
5
|
-
* The relation a foreign key points at — `authorId → author`, `user_id → user`.
|
|
6
|
-
* Returns undefined when the field carries no id suffix at all: there is nothing to
|
|
7
|
-
* derive, and taking the scalar's own name would collide with it.
|
|
8
|
-
*/
|
|
4
|
+
/** The relation a foreign key points at — `authorId → author`, `user_id → user`. */
|
|
9
5
|
function relationNameFor(fieldName) {
|
|
10
6
|
const stripped = fieldName.replace(/(_id|Id|ID)$/, '');
|
|
11
7
|
return stripped && stripped !== fieldName ? stripped : undefined;
|
|
@@ -19,15 +15,7 @@ function primaryNameOf(fields) {
|
|
|
19
15
|
}
|
|
20
16
|
/** The batch of ONE direction — the two sides of a relation must not share a read. */
|
|
21
17
|
const directionKey = (entity, field) => `${entity}#${field}`;
|
|
22
|
-
/**
|
|
23
|
-
* How many keys go into one `list` call.
|
|
24
|
-
*
|
|
25
|
-
* A page has no ceiling, and `list` is the one read the storage refuses to split (a limit
|
|
26
|
-
* and an order do not recompose across statements). So the slicing happens HERE, where
|
|
27
|
-
* the answer is a map being assembled and slices merge for free. Below SQL Server's
|
|
28
|
-
* 2100 bindings, the lowest of the four engines — this side does not know the dialect,
|
|
29
|
-
* so it takes the floor rather than guessing.
|
|
30
|
-
*/
|
|
18
|
+
/** How many keys go into one `list` call. */
|
|
31
19
|
const KEYS_PER_READ = 1000;
|
|
32
20
|
/** Read a key set in slices, merging what each answers. */
|
|
33
21
|
async function readInSlices(keys, read, merge) {
|
|
@@ -47,26 +35,14 @@ const keepEach = (into, from) => {
|
|
|
47
35
|
/** A key answers a group: slices of the SAME key concatenate. */
|
|
48
36
|
const concatEach = (into, from) => {
|
|
49
37
|
for (const [key, rows] of from) {
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
52
|
-
|
|
38
|
+
const bucket = into.get(key);
|
|
39
|
+
if (bucket)
|
|
40
|
+
bucket.push(...rows);
|
|
53
41
|
else
|
|
54
42
|
into.set(key, rows);
|
|
55
43
|
}
|
|
56
44
|
};
|
|
57
|
-
/**
|
|
58
|
-
* The keys asked for during one tick, answered by one read.
|
|
59
|
-
*
|
|
60
|
-
* graphql-js calls a field resolver once per parent, so a page of 50 rows asked for
|
|
61
|
-
* its relation 50 times — measured, with 5 distinct keys behind those 50 calls. The
|
|
62
|
-
* keys of a tick are collected and answered together, which is the shape the framework
|
|
63
|
-
* already imposes one level up: a presenter receives the PAGE (`egress.ts`).
|
|
64
|
-
*
|
|
65
|
-
* Scoped by the request's context object, which graphql-js hands identically to every
|
|
66
|
-
* resolver of one request and never shares with another — two callers must never be
|
|
67
|
-
* answered out of one read. When there is no context (a resolver called directly, as
|
|
68
|
-
* the tests do), the scope is a shared object and the tick alone bounds the batch.
|
|
69
|
-
*/
|
|
45
|
+
/** The keys asked for during one tick, answered by one read. */
|
|
70
46
|
const batches = new WeakMap();
|
|
71
47
|
const NO_CONTEXT = {};
|
|
72
48
|
function loadByKey(ctx, entityKey, id, read, absent) {
|
|
@@ -93,36 +69,19 @@ function loadByKey(ctx, entityKey, id, read, absent) {
|
|
|
93
69
|
}
|
|
94
70
|
// ─── Helpers ────────────────────────────────────
|
|
95
71
|
/**
|
|
96
|
-
* The key an entity is filed under — case-folded, because the same entity is spelled
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* (`authoruser`). Folding both is what lets one registry serve both sources.
|
|
72
|
+
* The key an entity is filed under — case-folded, because the same entity is spelled differently
|
|
73
|
+
* depending on where its name came from: the scan yields the registration name (`authorUser`),
|
|
74
|
+
* while a card's relation target is fully lowercased by `describe` (`authoruser`).
|
|
100
75
|
*/
|
|
101
76
|
function registryKey(entityName) {
|
|
102
77
|
return entityName.toLowerCase();
|
|
103
78
|
}
|
|
104
|
-
/**
|
|
105
|
-
* The key a relation points at. A live entity class answers with its class name; a target
|
|
106
|
-
* rebuilt from a lone card is a `{ name }` stand-in and answers with the name `describe`
|
|
107
|
-
* wrote. Both are names, which is the whole reason this resolves by name.
|
|
108
|
-
*/
|
|
79
|
+
/** The key a relation points at. */
|
|
109
80
|
function targetKey(target) {
|
|
110
81
|
return registryKey(String(target?.name ?? ''));
|
|
111
82
|
}
|
|
112
|
-
/**
|
|
113
|
-
|
|
114
|
-
* in the app that have a matching handler facade.
|
|
115
|
-
*
|
|
116
|
-
* Operations are driven by parsed handler signatures (from the scanner).
|
|
117
|
-
* Relations (ref/many) are auto-wired between registered entity types.
|
|
118
|
-
*/
|
|
119
|
-
/**
|
|
120
|
-
* The GraphQL type of a declared presenter view, built once per view class.
|
|
121
|
-
*
|
|
122
|
-
* Named after the field that emits it (`OrderItems`, `OrderUser`) rather than after the view
|
|
123
|
-
* class, so two fields sharing one view still land on the same type and a view used twice is
|
|
124
|
-
* registered once — Pothos refuses a duplicate type name and would take the schema down.
|
|
125
|
-
*/
|
|
83
|
+
/** Auto-register GraphQL types and operations from a fougere App. */
|
|
84
|
+
/** The GraphQL type of a declared presenter view, built once per view class. */
|
|
126
85
|
const viewTypes = new WeakMap();
|
|
127
86
|
function viewTypeOf(builder, view, name) {
|
|
128
87
|
const known = viewTypes.get(view);
|
|
@@ -184,7 +143,7 @@ export function registerAll(builder, app, options) {
|
|
|
184
143
|
typeRegistry.set(registryKey(entity.name), {
|
|
185
144
|
name: typeName, type, facade,
|
|
186
145
|
presenterFields: new Set(presenterMeta?.fields ?? []),
|
|
187
|
-
fields:
|
|
146
|
+
fields: entity.entityClass.getFields(),
|
|
188
147
|
});
|
|
189
148
|
const opOverrides = frond.operationsOverrides;
|
|
190
149
|
const operations = app.operationsFor(entity.name, surfaceName);
|
|
@@ -228,7 +187,7 @@ export function registerAll(builder, app, options) {
|
|
|
228
187
|
// over it would either crash the build or shadow what they wrote.
|
|
229
188
|
if (!relationName || relationName in fields || presenterFields.has(relationName))
|
|
230
189
|
continue;
|
|
231
|
-
const nullable =
|
|
190
|
+
const nullable = Shapes.isNullable(field.shape);
|
|
232
191
|
const targetKeyName = primaryNameOf(targetEntry.fields);
|
|
233
192
|
const targetList = targetEntry.facade.list;
|
|
234
193
|
relationFields[relationName] = (t) => t.field({
|
|
@@ -291,9 +250,9 @@ export function registerAll(builder, app, options) {
|
|
|
291
250
|
const grouped = new Map();
|
|
292
251
|
for (const row of rows) {
|
|
293
252
|
const key = String(row?.[reverseFkName]);
|
|
294
|
-
const
|
|
295
|
-
if (
|
|
296
|
-
|
|
253
|
+
const bucket = grouped.get(key);
|
|
254
|
+
if (bucket)
|
|
255
|
+
bucket.push(row);
|
|
297
256
|
else
|
|
298
257
|
grouped.set(key, [row]);
|
|
299
258
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-register.js","sourceRoot":"","sources":["../src/auto-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAY7D,OAAO,EAAE,OAAO,EAAE,QAAQ,GAAG,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAsB,MAAM,aAAa,CAAC;AAInF;;;;GAIG;AACH,SAAS,eAAe,CAAC,SAAiB;IACxC,MAAM,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IACvD,OAAO,QAAQ,IAAI,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;AACnE,CAAC;AAED;;;GAGG;AACH,SAAS,aAAa,CAAC,MAAc;IACnC,OAAO,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC;AAC7C,CAAC;AAOD,sFAAsF;AACtF,MAAM,YAAY,GAAG,CAAC,MAAc,EAAE,KAAa,EAAE,EAAE,CAAC,GAAG,MAAM,IAAI,KAAK,EAAE,CAAC;AAE7E;;;;;;;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;gBAC5B,CAAC;gBACD,OAAO,MAAM,CAAC;YAChB,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The GraphQL surface, in two calls: derive the schema, then mount it.
|
|
3
|
-
*
|
|
4
|
-
* The Pothos primitives `registerAll` stands on live one import away, under
|
|
5
|
-
* `@fougere/adapter-graphql/pothos`. They are a complement — a field the projection cannot
|
|
6
|
-
* derive — never a second way to build what it already gives. Offering them at the same
|
|
7
|
-
* rank made that hierarchy invisible: an agent looking for "how do I declare a type" found
|
|
8
|
-
* three doors and rebuilt two hundred lines by hand (measured 2026-08-02).
|
|
9
|
-
*/
|
|
1
|
+
/** The GraphQL surface, in two calls. */
|
|
10
2
|
export { registerAll } from './auto-register.js';
|
|
11
3
|
export type { RegisterAllOptions } from './auto-register.js';
|
|
12
4
|
export { registerGraphQL } from './serve.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The GraphQL surface, in two calls: derive the schema, then mount it.
|
|
3
|
-
*
|
|
4
|
-
* The Pothos primitives `registerAll` stands on live one import away, under
|
|
5
|
-
* `@fougere/adapter-graphql/pothos`. They are a complement — a field the projection cannot
|
|
6
|
-
* derive — never a second way to build what it already gives. Offering them at the same
|
|
7
|
-
* rank made that hierarchy invisible: an agent looking for "how do I declare a type" found
|
|
8
|
-
* three doors and rebuilt two hundred lines by hand (measured 2026-08-02).
|
|
9
|
-
*/
|
|
1
|
+
/** The GraphQL surface, in two calls. */
|
|
10
2
|
export { registerAll } from './auto-register.js';
|
|
11
3
|
export { registerGraphQL } from './serve.js';
|
|
12
4
|
export { schemaOf, executeOn } from './app.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAiB,MAAM,UAAU,CAAC"}
|
package/dist/pothos-entry.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Pothos primitives — for what `registerAll` cannot derive, never to replace it.
|
|
3
|
-
*
|
|
4
|
-
* Reach for these to add a field the projection has no way to know about. Rebuilding
|
|
5
|
-
* types, inputs and operations with them reimplements `registerAll` by hand and drops
|
|
6
|
-
* what it wires for free: relations, and a presenter's computed fields.
|
|
7
|
-
*/
|
|
1
|
+
/** The Pothos primitives — for what `registerAll` cannot derive, never to replace it. */
|
|
8
2
|
export { registerType, registerInput, registerOperations, registerObjectType } from './pothos.js';
|
|
9
3
|
export type { TypeConfig, InputConfig, OperationsConfig, ObjectFieldDef } from './pothos.js';
|
|
10
4
|
//# sourceMappingURL=pothos-entry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pothos-entry.d.ts","sourceRoot":"","sources":["../src/pothos-entry.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pothos-entry.d.ts","sourceRoot":"","sources":["../src/pothos-entry.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAClG,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/pothos-entry.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Pothos primitives — for what `registerAll` cannot derive, never to replace it.
|
|
3
|
-
*
|
|
4
|
-
* Reach for these to add a field the projection has no way to know about. Rebuilding
|
|
5
|
-
* types, inputs and operations with them reimplements `registerAll` by hand and drops
|
|
6
|
-
* what it wires for free: relations, and a presenter's computed fields.
|
|
7
|
-
*/
|
|
1
|
+
/** The Pothos primitives — for what `registerAll` cannot derive, never to replace it. */
|
|
8
2
|
export { registerType, registerInput, registerOperations, registerObjectType } from './pothos.js';
|
|
9
3
|
//# sourceMappingURL=pothos-entry.js.map
|
package/dist/pothos-entry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pothos-entry.js","sourceRoot":"","sources":["../src/pothos-entry.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pothos-entry.js","sourceRoot":"","sources":["../src/pothos-entry.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/pothos.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fougere/adapter-graphql — Pothos types derived from Fougere entities
|
|
3
3
|
*/
|
|
4
4
|
import type SchemaBuilder from '@pothos/core';
|
|
5
|
-
import type { SchemaView
|
|
5
|
+
import type { SchemaView } from '@fougere/schema';
|
|
6
6
|
type EntityClass = SchemaView & (abstract new (...args: any[]) => any);
|
|
7
7
|
/** Presenter instance — each method is a computed field resolver. */
|
|
8
8
|
type PresenterInstance = Record<string, (parent: any) => any>;
|
|
@@ -11,7 +11,7 @@ export interface TypeConfig {
|
|
|
11
11
|
name: string;
|
|
12
12
|
/** Entity source */
|
|
13
13
|
/** The schema whose fields become the type — a live class, or a card that travelled. */
|
|
14
|
-
entity:
|
|
14
|
+
entity: SchemaView;
|
|
15
15
|
/** Champs à exclure du type GraphQL */
|
|
16
16
|
exclude?: string[];
|
|
17
17
|
/** Relations à résoudre */
|
|
@@ -28,9 +28,8 @@ export interface TypeConfig {
|
|
|
28
28
|
nullable?: boolean;
|
|
29
29
|
}[];
|
|
30
30
|
/**
|
|
31
|
-
* The view a computed field emits, when the presenter declared one — the object type
|
|
32
|
-
*
|
|
33
|
-
* object-valued field can only be serialized.
|
|
31
|
+
* The view a computed field emits, when the presenter declared one — the object type to build
|
|
32
|
+
* for it.
|
|
34
33
|
*/
|
|
35
34
|
presenterViews?: Record<string, EntityClass | [EntityClass]>;
|
|
36
35
|
/** Builds (or reuses) the GraphQL object type for a declared view. */
|
|
@@ -83,7 +82,7 @@ export interface OperationBinding {
|
|
|
83
82
|
kind: 'param';
|
|
84
83
|
name: string;
|
|
85
84
|
} | {
|
|
86
|
-
kind: '
|
|
85
|
+
kind: 'input' | 'query';
|
|
87
86
|
};
|
|
88
87
|
}
|
|
89
88
|
/** The projection-facing subset of core's EffectiveOperation. */
|
|
@@ -120,11 +119,7 @@ export interface OperationsConfig {
|
|
|
120
119
|
* one root field. Absent when a caller builds a type by hand.
|
|
121
120
|
*/
|
|
122
121
|
origin?: string;
|
|
123
|
-
/**
|
|
124
|
-
* The GraphQL type for a schema an operation declares as its return. The caller owns
|
|
125
|
-
* this because it alone knows whether the schema IS the entity's (then: the type
|
|
126
|
-
* already registered) or something else (then: a new named type).
|
|
127
|
-
*/
|
|
122
|
+
/** The GraphQL type for a schema an operation declares as its return. */
|
|
128
123
|
viewType?: (view: SchemaView, opName: string) => any;
|
|
129
124
|
}
|
|
130
125
|
type ScalarName = 'string' | 'int' | 'float' | 'boolean';
|
|
@@ -136,74 +131,13 @@ export interface ObjectFieldDef {
|
|
|
136
131
|
/** Custom resolver. Defaults to `(parent) => parent[fieldName]`. */
|
|
137
132
|
resolve?: (parent: any) => any;
|
|
138
133
|
}
|
|
139
|
-
/**
|
|
140
|
-
* Register a GraphQL object type from a declarative field map.
|
|
141
|
-
*
|
|
142
|
-
* Each field auto-resolves from `parent[key]` unless a custom `resolve` is provided.
|
|
143
|
-
* Works for wrapper types, result types, or any structural type.
|
|
144
|
-
*
|
|
145
|
-
* ```ts
|
|
146
|
-
* const PostList = registerObjectType(builder, 'PostList', {
|
|
147
|
-
* items: { type: [PostType] },
|
|
148
|
-
* total: { type: 'int', nullable: true, resolve: async (p) => lazyCount(p) },
|
|
149
|
-
* hasMore: { type: 'boolean', nullable: true },
|
|
150
|
-
* endCursor: { type: 'string', nullable: true },
|
|
151
|
-
* });
|
|
152
|
-
* ```
|
|
153
|
-
*/
|
|
134
|
+
/** Register a GraphQL object type from a declarative field map. */
|
|
154
135
|
export declare function registerObjectType(builder: InstanceType<typeof SchemaBuilder>, name: string, fieldDefs: Record<string, ObjectFieldDef>): any;
|
|
155
|
-
/**
|
|
156
|
-
* Enregistre un type GraphQL (lecture) depuis une entité fougere.
|
|
157
|
-
*
|
|
158
|
-
* ```ts
|
|
159
|
-
* const ProductType = registerType(builder, {
|
|
160
|
-
* name: 'Product',
|
|
161
|
-
* entity: Product,
|
|
162
|
-
* exclude: ['categoryId'],
|
|
163
|
-
* relations: {
|
|
164
|
-
* category: {
|
|
165
|
-
* type: CategoryType,
|
|
166
|
-
* resolve: (parent) => db.select()...
|
|
167
|
-
* },
|
|
168
|
-
* },
|
|
169
|
-
* });
|
|
170
|
-
* ```
|
|
171
|
-
*/
|
|
136
|
+
/** Enregistre un type GraphQL (lecture) depuis une entité fougere. */
|
|
172
137
|
export declare function registerType(builder: InstanceType<typeof SchemaBuilder>, config: TypeConfig): any;
|
|
173
|
-
/**
|
|
174
|
-
* The GraphQL input for EXACTLY this view — or none, when the view asks for nothing.
|
|
175
|
-
*
|
|
176
|
-
* The caller derives the view and this projects it; it holds no policy of its own. What
|
|
177
|
-
* a client may supply at CREATION is `Visibility.input`, which the op path applies for
|
|
178
|
-
* create/update alone — `publish(input: Post)` must still name the post.
|
|
179
|
-
*
|
|
180
|
-
* Two things are dropped here because GraphQL cannot carry them, not because of any
|
|
181
|
-
* rule: a collection has no column to send, and `boundary in: 'closed'` is refused from
|
|
182
|
-
* every client. A view left with nothing after that gets `undefined` rather than an
|
|
183
|
-
* input object with zero fields, which is invalid GraphQL and takes the WHOLE schema
|
|
184
|
-
* down — every other type included.
|
|
185
|
-
*
|
|
186
|
-
* ```ts
|
|
187
|
-
* const CreateProductInput = registerInput(builder, {
|
|
188
|
-
* name: 'CreateProductInput',
|
|
189
|
-
* schema: CreateProduct,
|
|
190
|
-
* });
|
|
191
|
-
* ```
|
|
192
|
-
*/
|
|
138
|
+
/** The GraphQL input for EXACTLY this view — or none, when the view asks for nothing. */
|
|
193
139
|
export declare function registerInput(builder: InstanceType<typeof SchemaBuilder>, config: InputConfig): any;
|
|
194
|
-
/**
|
|
195
|
-
* Register all GraphQL operations for an entity from parsed handler signatures.
|
|
196
|
-
*
|
|
197
|
-
* Each operation in the map is registered as a Query or Mutation field
|
|
198
|
-
* based on naming convention (list*, find*, get*, search* → Query, else → Mutation).
|
|
199
|
-
*
|
|
200
|
-
* Args are generated from the parsed method signature:
|
|
201
|
-
* - Primitives (string, number) → scalar args
|
|
202
|
-
* - Entity/object params → input types (derived from meta.input)
|
|
203
|
-
* - Partial<T> wrapper → all input fields nullable
|
|
204
|
-
* - ListOptions → standard pagination args
|
|
205
|
-
* - InvocationContext → skipped (injected by resolver)
|
|
206
|
-
*/
|
|
140
|
+
/** Register all GraphQL operations for an entity from parsed handler signatures. */
|
|
207
141
|
export declare function registerOperations(builder: InstanceType<typeof SchemaBuilder>, config: OperationsConfig): void;
|
|
208
142
|
export {};
|
|
209
143
|
//# sourceMappingURL=pothos.d.ts.map
|
package/dist/pothos.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pothos.d.ts","sourceRoot":"","sources":["../src/pothos.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAiB,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"pothos.d.ts","sourceRoot":"","sources":["../src/pothos.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAiB,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKjE,KAAK,WAAW,GAAG,UAAU,GAAG,CAAC,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAC;AAEvE,qEAAqE;AACrE,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC,CAAC;AAE9D,MAAM,WAAW,UAAU;IACzB,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,wFAAwF;IACxF,MAAM,EAAE,UAAU,CAAC;IACnB,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC3C,+EAA+E;IAC/E,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,qFAAqF;IACrF,eAAe,CAAC,EAAE,MAAM,EAAE,C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