Closed stlbucket closed 1 year ago
if i go with the exact grafserv settings in this repository, then my application still works in general, but i cannot get to the /graphiql route
i see the route in the example AND the serv.ts file:
my /server/api/graphql.ts:
import { postgraphile } from "postgraphile"
import { grafserv } from "grafserv/h3/v1";
import preset from "./graphile.config.js";
const pgl = postgraphile(preset);
const serv = pgl.createServ(grafserv);
export default defineEventHandler(async (event) => {
return serv.handleEvent(event)
})
export { serv }
and then in /server/routes/graphiql.ts:
This implementation is waiting pr. You must import grafserv from this local file, not from grafserv since it's not again merged.
import { grafserv } from "./h3/v1";
This must resolve your ws issue too.
Is there something I am missing?
following these instructions: https://postgraphile.org/postgraphile/next/subscriptions/
In Ruru, I am seeing this error when I try to execute the subscription:
from my graphile.config.ts:
my plugin is slightly modified: