Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 1 day ago
JSON representation

(priv) temporary test using apollo-graphql

Awesome Lists containing this project

README

        

# demo-apollo-graphql-nosql-
temporary test using apollo-graphql

WIP : 👷

## install and run

````
npm install apollo-server graphql --save
node index.js
````
## tests commands

Testing resolvers - nested calls
````
curl --location --request POST 'http://localhost:4000/' \
--header 'Content-Type: application/json' \
-d '{"query":"query { libraries { branch, books { title } }}","variables":{}}' | jq

curl --location --request POST 'http://localhost:4000/' \
--header 'Content-Type: application/json' \
-d '{"query":"query { libraries { branch, books { title, author { name} } }}","variables":{}}' | jq

````