GraphQL Queries
GraphQL queries are generated dynamically using javascript
Introduction to GraphQL
{
categoryList {
name
children {
name
url
product_count
}
}
}{
"data": {
"categoryList": [
{
"name": "Default Category",
"children": [
{
"name": "Audio, Video & Photo Equipment",
"url": "/audio-video-photo-equipment.html",
"product_count": 0
},
{
"name": "Home Security & Automation",
"url": "/home-security-automation.html",
"product_count": 0
},
{
"name": "Computers, Peripherals & Accessories",
"url": "/computers-peripherals-accessories.html",
"product_count": 1
},
{
"name": "Office",
"url": "/office.html",
"product_count": 2
},
{
"name": "Telecom & Navigation",
"url": "/telecom-navigation.html",
"product_count": 0
},
// [...]
]
}
]
}
}API
Generating GraphQL Queries
Field
Fragment
Example
Making Queries
QueryDispatcher
GraphQL in ScandiPWA
Last updated