diff --git a/.changeset/thin-lemons-type.md b/.changeset/thin-lemons-type.md new file mode 100644 index 0000000000..a52861d348 --- /dev/null +++ b/.changeset/thin-lemons-type.md @@ -0,0 +1,5 @@ +--- +"ensapi": patch +--- + +Updated `ensIndexerSchema` value that is passed into `subgraphGraphQLMiddleware` function. diff --git a/apps/ensapi/src/handlers/subgraph/subgraph-api.ts b/apps/ensapi/src/handlers/subgraph/subgraph-api.ts index a3e8a71dc9..258537df23 100644 --- a/apps/ensapi/src/handlers/subgraph/subgraph-api.ts +++ b/apps/ensapi/src/handlers/subgraph/subgraph-api.ts @@ -2,10 +2,14 @@ import config from "@/config"; import { createDocumentationMiddleware } from "ponder-enrich-gql-docs-middleware"; +// FIXME: use the import from: +// import { ensIndexerSchema } from "@/lib/ensdb/singleton"; +// Once the lazy proxy implemented for `ensIndexerSchema` export is improved +// to support Drizzle ORM in `ponder-subgraph` package. +import * as ensIndexerSchema from "@ensnode/ensdb-sdk/ensindexer-abstract"; import { type Duration, hasSubgraphApiConfigSupport } from "@ensnode/ensnode-sdk"; import { subgraphGraphQLMiddleware } from "@ensnode/ponder-subgraph"; -import { ensIndexerSchema } from "@/lib/ensdb/singleton"; import { createApp } from "@/lib/hono-factory"; import { lazy } from "@/lib/lazy"; import { makeSubgraphApiDocumentation } from "@/lib/subgraph/api-documentation";