Mock out the first sprint

Agenda

  1. What is GraphQL and why you should use it?
  2. Creating projects in an Agile way
  3. Schema and API mocking
  4. Real-world use-cases

What is GraphQL?

A Query Language for Data

query {
  teams {
    name
    drivers {
      name
      nationality
    }
  }
}
{
  "data": {
    "teams": [
      {
        "name": "Ferrari",
        "drivers": [
          {
            "name": "Charles Leclerc",
            "nationality": "Monegasque"
          },
          {
            "name": "Sebastian Vettel",
            "nationality": "German"
          }
        ]
      },
      {
        "name": "Mercedes",
        "drivers": [
          {
            "name": "Valtteri Bottas",
            "nationality": "Finnish"
          },
          {
            "name": "Lewis Hamilton",
            "nationality": "British"
          }
        ]
      }
    ]
  }
}

Query

Response

  type Team {
    name: String!
    drivers: [Driver!]!
  }

  type Driver {
    name: String!
    team: Team
    nationality: String!
  }

  type Query {
    teams: [Team!]!
  }

Schema

Comparision with REST

Title

Title

Mock out the first sprint

By Maciej

Mock out the first sprint

Mock out the first sprint

  • 474