Laravel framework with GraphQL integration.
Query variables:
{
products {
name,
description,
country
}
}
Output response:
{
"data": {
"products": [
{
"name": "Product A",
"description": "Description of Product A",
"country": "Portugal"
},
{
"name": "Product B",
"description": "Description of Product B",
"country": "Spain"
},
{
"name": "Product C",
"description": "Description of Product C",
"country": "France"
},
{
"name": "Product D",
"description": "Description of Product D",
"country": "Italy"
}
]
}
}
Query variables:
{
product(id: 1) {
name,
description,
country
}
}
Output response:
{
"data": {
"product": {
"name": "Product A",
"description": "Description of Product A",
"country": "Portugal"
}
}
}
Either you can user postman or electronjs.