This is s sample nodejs app to show the very basic functionality ("Hello World" message) for GraphQL
- npm
- nodejs
Download the app and go to the folder/directory where app.js file exist and run the following command:
npm install
To run the app go to the folder/directory where app.js file exist and run the following command:
npm start
The server will start on port 8082.
Navigate to the GraphQL UI endpoint: http://localhost:8082/graphql
-
Open your favorite browser and go to the GraphQL UI endpoint: http://localhost:8082/graphql
-
Here is the example GraphQL query you can do from the above endpoint:
query { message }