michaelthe / graphql-angular-poc

Repository from Github https://github.commichaelthe/graphql-angular-pocRepository from Github https://github.commichaelthe/graphql-angular-poc

Graphql poc using angular and mysql

Setup

  • Start the services
docker-compose up -d
  • Add the test data to the database
./restore_database.sh

Sample query

{
  customers (limit: 1, offset:0) {
    customerNumber
    customerName
    postalCode
  }

  employees (limit: 1) {
    employeeNumber
    lastName
		firstName
    jobTitle
    customers (limit: 2) {
    	customerName  
    }
  }

  customer (id:103) {
 		customerNumber
    customerName
    contactLastName
    # contactFirstName
    # salesRepEmployeeNumber
    creditLimit   
    salesRep {
      employeeNumber
      lastName
			firstName
    }
  }
  
  employee (id: 1002) {
    lastName
		firstName
    jobTitle
  }
}

About


Languages

Language:TypeScript 78.0%Language:JavaScript 11.4%Language:HTML 5.6%Language:Dockerfile 3.7%Language:CSS 0.9%Language:Shell 0.5%