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

Refresh typeDefs and resolvers programmatically #658

Closed
Tracked by #704
bahamut657 opened this issue Nov 24, 2020 · 2 comments
Closed
Tracked by #704

Refresh typeDefs and resolvers programmatically #658

bahamut657 opened this issue Nov 24, 2020 · 2 comments

Comments

@bahamut657
Copy link

bahamut657 commented Nov 24, 2020

Hi guys and thanks for this supreme NodeJS module.
I'm not founding the right way to refresh typeDefs and resolvers after the server is started (for the moment I'm killing and re-spawning the service).
Is it a way to perform this action?
If not, Is there a way to restart only the GraphQL(HTTP) server without killing and re-spawning the entire service?
Regards

@3imed-jaberi
Copy link

3imed-jaberi commented Jan 29, 2021

Hi @bahamut657, use nodemon like this:

// package.json file
"scripts": {
    // scripts...
    "dev": "nodemon --ext js,graphql --exec src/index.js"
} 

@saihaj saihaj mentioned this issue Dec 5, 2021
32 tasks
@saihaj
Copy link
Collaborator

saihaj commented Feb 19, 2022

Hey @bahamut657 @3imed-jaberi we @the-guild-org are the new maintainers for this project. We are actively developing v2 and would love to get your feedback on beta release @graphql-yoga/node@beta

@saihaj saihaj closed this as completed Feb 19, 2022
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

3 participants