Skip to content

pqrsooo/indiv-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Server

Build Status

This is a GraphQL server endpoint to fetch and update data from/to Mongo database.

Current Access IP

http://54.183.27.114:8080

Jenkins

Using Jenkins to automatically deploy to EC2 instance (indiv-database node)
To view Jenkins build status, see badge on top of this README.md

API

GraphQL Schema

{
  comments {
    id,
    author,
    text
  }
}

Query

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

Mutation

All available provided mutation is listed here

add(author: String!, text: String!): comment

About

GraphQL with MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages