Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dario-vega/demo-apollo-graphql-nosql-
(priv) temporary test using apollo-graphql
https://github.com/dario-vega/demo-apollo-graphql-nosql-
Last synced: 7 days ago
JSON representation
(priv) temporary test using apollo-graphql
- Host: GitHub
- URL: https://github.com/dario-vega/demo-apollo-graphql-nosql-
- Owner: dario-vega
- Created: 2022-01-28T10:24:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-07T06:23:37.000Z (over 2 years ago)
- Last Synced: 2023-03-10T06:05:57.296Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# demo-apollo-graphql-nosql-
temporary test using apollo-graphqlWIP : 👷
## install and run
````
npm install apollo-server graphql --save
node index.js
````
## tests commandsTesting resolvers - nested calls
````
curl --location --request POST 'http://localhost:4000/' \
--header 'Content-Type: application/json' \
-d '{"query":"query { libraries { branch, books { title } }}","variables":{}}' | jqcurl --location --request POST 'http://localhost:4000/' \
--header 'Content-Type: application/json' \
-d '{"query":"query { libraries { branch, books { title, author { name} } }}","variables":{}}' | jq````