This is a GraphQL server endpoint to fetch and update data from/to Mongo database.
http://54.183.27.114:8080
Using Jenkins to automatically deploy to EC2 instance (indiv-database node)
To view Jenkins build status, see badge on top of this README.md
{
comments {
id,
author,
text
}
}
URL: http://54.183.27.114:8080/?query=[query_context]
Ex: To query id and author of all comment, query_context should be:
{
comments {
id,
author
}
}
So, you can fetch data via this URL: http://54.183.27.114:8080/?query={comments{id,author}}
Note that response for any query is in JSON type
All available provided mutation is listed here
add(author: String!, text: String!): comment