-
Notifications
You must be signed in to change notification settings - Fork 16
Use static import for ENSIndexer Schema used with subgraphGraphQLMidlleware function
#1851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "ensapi": patch | ||
| --- | ||
|
|
||
| Updated `ensIndexerSchema` value that is passed into `subgraphGraphQLMiddleware` function. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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"; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The FIXME comment is a bit ambiguous about what needs to be “improved”. Consider clarifying that the current
lazyProxyimplementation doesn’t support key enumeration (e.g.Object.entries/Object.keys/ownKeys), which is what Drizzle (viaponder-subgraph) relies on, so future readers know the precise blocker.