You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, running according to the documentation, the code provided will result on a Segmentation fault (core dumped).
Really not sure if we should take care of this here or on bun repo though.
bun run src/bunApp.ts
Your Example Website or App
Not needed
Steps to Reproduce the Bug or Issue
Basically, this should be working, it's too minimum. Also is how it is on the docs, with an small update based on this comment
Just paste this on a typescript file and run it using bun run file.ts:
import{createSchema,createYoga}from"graphql-yoga";constyoga=createYoga({schema: createSchema({typeDefs: /* GraphQL */` type Query { greetings: String } `,resolvers: {Query: {greetings: ()=>"Hello from Yoga in a Bun app!",},},}),});constserver=Bun.serve({fetch: yoga,});console.info(`Server is running on ${newURL(yoga.graphqlEndpoint,`http://${server.hostname}:${server.port}`)}`);
Expected behavior
Make the server available with a minimum graphql setup
Screenshots or Videos
No response
Platform
OS: Linux Mint
Bun: 1.0.20
@graphql-yoga/* version(s): 5.1.0
Typescript
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Basically, running according to the documentation, the code provided will result on a
Segmentation fault (core dumped).
Really not sure if we should take care of this here or on bun repo though.
bun run src/bunApp.ts
Your Example Website or App
Not needed
Steps to Reproduce the Bug or Issue
Basically, this should be working, it's too minimum. Also is how it is on the docs, with an small update based on this comment
Just paste this on a typescript file and run it using
bun run file.ts
:Expected behavior
Make the server available with a minimum graphql setup
Screenshots or Videos
No response
Platform
@graphql-yoga/*
version(s): 5.1.0Additional context
No response
The text was updated successfully, but these errors were encountered: