Skip to content
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

Bun integration #7733

Open
RajaARK99 opened this issue Sep 23, 2023 · 11 comments
Open

Bun integration #7733

RajaARK99 opened this issue Sep 23, 2023 · 11 comments

Comments

@RajaARK99
Copy link

Support bun in Apollo server.

@trevor-scheer
Copy link
Member

Can you expand? What is currently unsupported? Is this issue related?

@RajaARK99
Copy link
Author

Use bun as a run time not using node.

Can you expand? What is currently unsupported? Is this issue related?

@trevor-scheer
Copy link
Member

I think the issue I linked is related then. It requires Apollo Server to stop using Node APIs. Is that what's preventing AS from running in Bun or is there anything else?

A PR to fix #7369 would be welcome. I won't be able to prioritize this work any time soon.

@michaelbromley
Copy link

Here's what I ran into when trying to get Apollo Server running on Bun:

@HuakunShen
Copy link

HuakunShen commented Nov 5, 2023

Query and Mutation work for me in bun v1.0.8, but subscription doesn't work.

@trevor-scheer
Copy link
Member

As mentioned in the comment above and in the duplicate issue here, it would be nice to consider subscriptions as well when resolving this issue (though all subscriptions related work belongs to separate projects, so that would likely be a separate PR to another project).

@oliveredsberger
Copy link

Same issue as reported by @michaelbromley. @HuakunShen how did you get queries to work?

@HuakunShen
Copy link

@oliveredsberger It works out of the box.
Use this example
https://github.com/apollographql/docs-examples/tree/main/apollo-server/v4/getting-started

bun src/index.ts

I tried running TypeScript directly with bun, or run the compiled JS with bun. Both work.

@ChrisEnglert
Copy link

Hello, I've just made this:

https://github.com/ChrisEnglert/apollo-server-integration-bun

Allows using ApolloServer with Bun.serve({...}) API

maybe you'd like to consider this for @as-integrations ?

@trevor-scheer
Copy link
Member

@ChrisEnglert that would be great! Would you like it to publish under the @as-integrations npm scope as well? Go ahead and transfer the repo to the apollo-server-integrations org if that's still something you'd like to do and we can go from there.

@ChrisEnglert
Copy link

@trevor-scheer yes, sure. I just need an invite I guess ("You don’t have the permission to create public repositories on apollo-server-integrations")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants