Returns a list of the shop's product saved searches.
Access Scopes
`read_products` access scope.
Arguments
after:
String -
The elements that come after the specified [cursor](https://shopify.dev/api/usage/pagination-graphql).
before:
String -
The elements that come before the specified [cursor](https://shopify.dev/api/usage/pagination-graphql).
first:
Int -
The first `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql).
last:
Int -
The last `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql).
reverse:
Boolean -
Reverse the order of the underlying list.
Returns
edges:
SavedSearchEdge!
The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node.
nodes:
SavedSearch!
A list of nodes that are contained in SavedSearchEdge. You can fetch data about an individual node, or you can follow the edges to fetch data about a collection of related nodes. At each node, you specify the fields that you want to retrieve.
pageInfo:
PageInfo!
An object that’s used to retrieve [cursor information](https://shopify.dev/api/usage/pagination-graphql) about the current page.
A list of nodes that are contained in SavedSearchEdge. You can fetch data about an individual node, or you can follow the edges to fetch data about a collection of related nodes. At each node, you specify the fields that you want to retrieve.
An object that’s used to retrieve cursor information about the current page.
Was this section helpful?
Retrieve the first three saved product searches
Hide code
Copy
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
›
⌄
⌄
⌄
⌄
query{
productSavedSearches(first: 3){
nodes {
id
legacyResourceId
name
filters {
key
value
}
query
searchTerms
}
}
}
Hide code
Response
JSON
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
›
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
{
"productSavedSearches": {
"nodes": [
{
"id": "gid://shopify/SavedSearch/136409974",
"legacyResourceId": "136409974",
"name": "Foo Products",
"filters": [],
"query": "foo",
"searchTerms": "foo"
},
{
"id": "gid://shopify/SavedSearch/1068136127",
"legacyResourceId": "1068136127",
"name": "Drafts",
"filters": [
{
"key": "status",
"value": "DRAFT"
}
],
"query": "status:\"DRAFT\"",
"searchTerms": ""
},
{
"id": "gid://shopify/SavedSearch/1068136128",
"legacyResourceId": "1068136128",
.dev Assistant
Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.