https://github.com/simply007/apollo-server-test
Testing repository combining Apolloserver with data from Kentico Cloud
https://github.com/simply007/apollo-server-test
Last synced: 12 months ago
JSON representation
Testing repository combining Apolloserver with data from Kentico Cloud
- Host: GitHub
- URL: https://github.com/simply007/apollo-server-test
- Owner: Simply007
- Created: 2018-11-23T09:51:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-07T15:34:02.000Z (over 7 years ago)
- Last Synced: 2025-04-04T22:27:57.700Z (about 1 year ago)
- Language: JavaScript
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# apollo-server-test
Testing repository combining Apolloserver with data from Kentico Cloud
## Prerequisites
* [NodeJs + npm](https://nodejs.org/) installed
## How to run
1. Clone the repository
2. Run `npm install` to install al required packages
3. Run `node index.js` to run the server
4. Open browser on address http://localhost:4000/ to see the playground
The playground is ready with two queries `items` and `itemsByType`.
Items load all items:
```
{
items {
system {
name
codename
language
type
lastModified
}
}
}
```
Query preconfigured for 'article type' (with title text field element):
```
{
itemsByType(type: "article") {
system {
id
codename
}
title {
value
}
}
}
```