graphql/yoga-server/docs/integrations/integration-with-bun #2644
Replies: 6 comments 7 replies
-
How would I use websocket with |
Beta Was this translation helpful? Give feedback.
-
That s schema first, so how make code first ? |
Beta Was this translation helpful? Give feedback.
-
is supported jsonwebtoken in bun? https://the-guild.dev/graphql/yoga-server/docs/features/jwt if (!secretOrPrivateKey && options.algorithm !== 'none') { if (secretOrPrivateKey != null && !(secretOrPrivateKey instanceof KeyObject)) { |
Beta Was this translation helpful? Give feedback.
-
to anyone struggling with "subscription", here is the gist that helped me: key points to note/implement are: import { makeHandler } from "graphql-ws/lib/use/bun"; const websocketHandler = makeHandler({
|
Beta Was this translation helpful? Give feedback.
-
if you get the Typescript Issue Typescript type mismatch: Argument of type 'YogaServerInstance<{}, {}>' is not assignable to parameter of type 'Serve' using const server = Bun.serve({
fetch: yoga
}) with const server = Bun.serve({
fetch: (request) => yoga(request),
}) see #3003 (comment) |
Beta Was this translation helpful? Give feedback.
-
bun@1.1.24 is throwing a type error with graphql-yoga@5.7.0 for this tutorial: const server = Bun.serve({
fetch: yoga,
});
|
Beta Was this translation helpful? Give feedback.
-
graphql/yoga-server/docs/integrations/integration-with-bun
GraphQL Yoga provides you a cross-platform GraphQL Server. So you can easily integrate it into any platform besides Node.js.
https://the-guild.dev/graphql/yoga-server/docs/integrations/integration-with-bun
Beta Was this translation helpful? Give feedback.
All reactions