Skip to content

Commit 70d8ee9

Browse files
os-steveclaude
andauthored
docs: correct two stale GraphQL residue sites in package source comments (#11414)
`packages/spec/src/data/object.zod.ts:252` — the JSDoc on `apiEnabled` said "Enable REST/GraphQL API access". There is no automatic GraphQL API; `apiEnabled` gates the automatic REST and MCP surfaces (`packages/mcp/src/stdio-data-bridge.ts:260` reads `apiEnabled === false`). The `.describe()` one line below was already correct ("Expose object via automatic APIs") and is untouched. `packages/adapters/hono/src/index.ts:105-106` — the `createHonoApp` doc comment's parenthetical named "GraphQL raw result" among the routes registered explicitly. `createHonoApp` registers auth (`/auth/*`) and discovery (`prefix`, `/discovery`, `/.well-known/objectstack`) explicitly, then one catch-all; no GraphQL route exists (`packages/runtime/src/http-dispatcher.ts:2087` — `// /graphql removed — GraphQL is not in the product plan (#2462 follow-on)`). Comment-only; no behavior, `.describe()`, or schema-shape change. Claude-Session: https://claude.ai/code/session_01T9cDbY2NBiVJWYx3BpWfH2 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3c418c4 commit 70d8ee9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/adapters/hono/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ export function objectStackMiddleware(kernel: ObjectKernel) {
102102
/**
103103
* Creates a full-featured Hono app with all ObjectStack route dispatchers.
104104
*
105-
* Only routes that need framework-specific handling (auth service, GraphQL
106-
* raw result, discovery wrapper) are registered explicitly.
105+
* Only routes that need framework-specific handling (auth service,
106+
* discovery wrapper) are registered explicitly.
107107
* All other routes (meta, data, packages, analytics, automation, i18n, ui,
108108
* openapi, custom endpoints, and any future routes) are handled by a
109109
* catch-all that delegates to `HttpDispatcher.dispatch()`.

packages/spec/src/data/object.zod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export const ObjectCapabilities = strictObject({
249249
/** Enable global search indexing */
250250
searchable: z.boolean().default(true).describe('Index records for global search'),
251251

252-
/** Enable REST/GraphQL API access */
252+
/** Enable REST/MCP API access */
253253
apiEnabled: z.boolean().default(true).describe('Expose object via automatic APIs'),
254254

255255
/**

0 commit comments

Comments
 (0)