GraphQL project sample for croquis.com projects

Need for Start

  1. docker
  2. docker-compose
  3. npm or yarn

How to start

  1. Start database servers: ./tools/db/start.sh
  2. install PM2 : npm install -g pm2 OR yarn global add pm2
  3. Start services: cd services/user && pm2 start tools/server.js
  4. Run playground: http://localhost:6400/graphql

Used frameworks/libraries

Sample queries

Create a user

mutation {
  createUser(input: {
    full_name: "Test User"
  }) {
    id
    full_name
  }
}

Get users list

{
  user_list(full_name_istartswith: "T") {
    item_list {
      id
      full_name
    }
  }
}