Skip to content

Commit

Permalink
fix graphql status
Browse files Browse the repository at this point in the history
  • Loading branch information
kyscott18 committed Jan 17, 2025
1 parent f6ce6eb commit da9266f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/graphql/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { getMetadataStore } from "@/indexing-store/metadata.js";
import type { Schema } from "@/internal/types.js";
import type { ReadonlyDrizzle } from "@/types/db.js";
import { graphiQLHtml } from "@/ui/graphiql.html.js";
@@ -54,7 +55,10 @@ export const graphql = (
schema: graphqlSchema,
context: () => {
const getDataLoader = buildDataLoaderCache({ drizzle: db });
return { drizzle: db, getDataLoader };
const metadataStore = getMetadataStore({
database: globalThis.PONDER_DATABASE,
});
return { drizzle: db, metadataStore, getDataLoader };
},
maskedErrors: process.env.NODE_ENV === "production",
logging: false,

0 comments on commit da9266f

Please sign in to comment.