Thx a lot for this amazing video, I am trying to do the same but I want to use Hapi instead express, do you have any other video or documentation that can I use?
Hello, I am able to successfully make a mutation but when I do subscriptions I get a status error saying it's unable to connect to the ws://localhost:4000/graphql. Do you know what might be causing this issue? I even tried cloning you git code and running it on my local machine with no success
I also had this issue, and I was struggling for a while as well but this is the solution. Lets say I have my typeDefs and resolvers in a schema.ts file in the same directory as the server.ts you import them like this assuming they aren't default exported. import { typeDefs, resolvers } from "./schema.js"; you still do 'schema.js' even if its a .ts file.
if I deploy this server on production I get this message: Send a POST request to query this endpoint: ------------------------------------------------------------------------------------------------------------------------------------------------------ curl --request POST \ --header 'content-type: application/json' \ ------------------------------------------------------------------------------------------------------------------------------------------------------ any help?
Thx a lot for this amazing video, I am trying to do the same but I want to use Hapi instead express, do you have any other video or documentation that can I use?
thank you so much, I have been looking for something amazing like this!
I was struggling to understand the subscription part of apollo graphql documentation. This video helped me a lot. Thanks
]
Great introduction to Subscriptions. Thanks. :)
Thanks, great job and we appreciate. Can you do some tutorial on apollo express error handling
Doing a video on Apollo Server GraphQL error handling today :) be on the lookout!
@@CooperCodes thanks so much, you are the best
Thanks alot
This helped a lot. Thanks 🙏
You are very welcome. Thanks for watching!
Hello, I am able to successfully make a mutation but when I do subscriptions I get a status error saying it's unable to connect to the ws://localhost:4000/graphql. Do you know what might be causing this issue? I even tried cloning you git code and running it on my local machine with no success
having the same issue! Did you get any solutions?
same for me. Got it working?
how can i create a seperate file for schema and resolver for the same
I also had this issue, and I was struggling for a while as well but this is the solution.
Lets say I have my typeDefs and resolvers in a schema.ts file in the same directory as the server.ts
you import them like this assuming they aren't default exported.
import { typeDefs, resolvers } from "./schema.js";
you still do 'schema.js' even if its a .ts file.
@@alexmcclay8152 I Implemented this and it worked perfectly, Thank you 😊
do you have this in JavaScript?
ruclips.net/video/rwVstu4tsgo/видео.html
source code please
It is here: github.com/coopercodes/LiveNewsAPI
GraphQL
Yep, back at it! More Apollo Server V4 content soon
if I deploy this server on production I get this message:
Send a POST request to query this endpoint:
------------------------------------------------------------------------------------------------------------------------------------------------------
curl --request POST \
--header 'content-type: application/json' \
------------------------------------------------------------------------------------------------------------------------------------------------------
any help?