Retrieve all stores in a city from single brand using search
with multiple attributes. The below query searches for the first 5 Dunkin' Donuts stores in the city of Boston.
query {
search(
filter: {
brand: "Dunkin'"
address: {
city: "Boston"
region: "MA"
}
}
) {
places {
results(first:5) {
edges {
node {
safegraph_core {
location_name
street_address
city
region
brands {
brand_id
brand_name
}
}
}
}
}
}
}
}
{
"data": {
"search": {
"places": {
"results": {
"edges": [
{
"node": {
"safegraph_core": {
"location_name": "Dunkin'",
"street_address": "1443 Tremont St",
"city": "Boston",
"region": "MA",
"brands": [
{
"brand_id": "SG_BRAND_9b4045db0fbb461cf9ed78916d9b16b4",
"brand_name": "Dunkin'"
}
]
}
}
},
{
"node": {
"safegraph_core": {
"location_name": "Dunkin'",
"street_address": "411 D St",
"city": "Boston",
"region": "MA",
"brands": [
{
"brand_id": "SG_BRAND_9b4045db0fbb461cf9ed78916d9b16b4",
"brand_name": "Dunkin'"
}
]
}
}
},
{
"node": {
"safegraph_core": {
"location_name": "Dunkin'",
"street_address": "715 Boylston St",
"city": "Boston",
"region": "MA",
"brands": [
{
"brand_id": "SG_BRAND_9b4045db0fbb461cf9ed78916d9b16b4",
"brand_name": "Dunkin'"
}
]
}
}
},
{
"node": {
"safegraph_core": {
"location_name": "Dunkin'",
"street_address": "296 Cambridge St",
"city": "Boston",
"region": "MA",
"brands": [
{
"brand_id": "SG_BRAND_9b4045db0fbb461cf9ed78916d9b16b4",
"brand_name": "Dunkin'"
}
]
}
}
},
{
"node": {
"safegraph_core": {
"location_name": "Dunkin'",
"street_address": "1 South Sta",
"city": "Boston",
"region": "MA",
"brands": [
{
"brand_id": "SG_BRAND_9b4045db0fbb461cf9ed78916d9b16b4",
"brand_name": "Dunkin'"
}
]
}
}
}
]
}
}
}
},
"extensions": {
"row_count": 5,
"version_date": [
"safegraph_core: 1645948803__2022_02",
"safegraph_geometry: 1645948803__2022_02",
"safegraph_weekly_patterns2: 2022_01_11",
"safegraph_monthly_patterns: 2022_01_11"
]
}
}