Swydo / ddp-apollo

DDP link for Apollo with GraphQL Subscriptions support
MIT License
177 stars 15 forks source link

405 when trying to connect to `localhost:3000` #402

Closed paymog closed 2 years ago

paymog commented 2 years ago

I'm trying to migrate from apollo-server-express to ddp-apollo and now I'm seeing that all of my requests to are getting a 405.

I see the following error in my browser console when visiting localhost:3000:

POST http://localhost:3000/graphql 405 (Method Not Allowed)

I see the same error when visiting localhost:3000/graphql. Is this is a known issue?

paymog commented 2 years ago

Turns out I needed to use setupHttpHandler and createGraphQLPublication instead of setup