v1Brands
Query brands with search and pagination
QUERY
v1BrandsArguments
searchStringFull-text search over brand name and slug (max 200 characters)
pageIntPage number (1-based, default 1)
perPageIntPage size (default 25, max 50)
Returns
Brands with pagination information
Try it
Server
Bodyapplication/json
Request
curl -X POST 'https://graphql.enad.io/{app_id}/graphql' \
-H 'Content-Type: application/json' \
-d '{
"query": "query V1Brands($search: String, $page: Int, $perPage: Int) {\n v1Brands(search: $search, page: $page, perPage: $perPage) {\n brands {\n id\n name\n slug\n description\n logoUrl\n coverUrl\n email\n }\n pageInfo {\n totalPages\n currentPage\n hasNextPage\n hasPreviousPage\n }\n }\n}",
"variables": {
"search": "string",
"page": 0,
"perPage": 0
}
}'const response = await fetch("https://graphql.enad.io/{app_id}/graphql", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: "{\n \"query\": \"query V1Brands($search: String, $page: Int, $perPage: Int) {\\n v1Brands(search: $search, page: $page, perPage: $perPage) {\\n brands {\\n id\\n name\\n slug\\n description\\n logoUrl\\n coverUrl\\n email\\n }\\n pageInfo {\\n totalPages\\n currentPage\\n hasNextPage\\n hasPreviousPage\\n }\\n }\\n}\",\n \"variables\": {\n \"search\": \"string\",\n \"page\": 0,\n \"perPage\": 0\n }\n}"
});import requests
response = requests.post(
"https://graphql.enad.io/{app_id}/graphql",
headers={
"Content-Type": "application/json"
},
data="{\n \"query\": \"query V1Brands($search: String, $page: Int, $perPage: Int) {\\n v1Brands(search: $search, page: $page, perPage: $perPage) {\\n brands {\\n id\\n name\\n slug\\n description\\n logoUrl\\n coverUrl\\n email\\n }\\n pageInfo {\\n totalPages\\n currentPage\\n hasNextPage\\n hasPreviousPage\\n }\\n }\\n}\",\n \"variables\": {\n \"search\": \"string\",\n \"page\": 0,\n \"perPage\": 0\n }\n}",
)Response
{
"data": {
"v1Brands": {
"brands": [
{
"id": "string",
"name": "string",
"slug": "string",
"description": "string",
"logoUrl": "string",
"coverUrl": "string",
"email": "string"
}
],
"pageInfo": {
"totalPages": 0,
"currentPage": 0,
"hasNextPage": true,
"hasPreviousPage": true
}
}
}
}