GraphQL — Hands-on with next-generation API.

Difference between REST API and GraphQL API
{
students{
name
}
}
{
"students": [
{ "name": "John" },
{ "name": "Jane" },
{ "name": "Alice" }
]
}
mutation {
createStudent(name: "Anna", age: 12) {
name
age
}
}
"createStudent": {
"name": "Anna",
"age": 12,
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Samadhiwathsala

Samadhiwathsala

Undergraduate in Sabaragamuwa University of Sri Lanaka