Skip to content
Console(opens in a new tab)

search

Finds the entities that match `searchInput` and returns them as a list.

Intent. This intent is a read. It returns data and changes nothing.

Finds the entities that match searchInput and returns them as a list. Select fields on each result with an inline fragment, such as ... on Brand.

search(searchInput: SearchInput!): [SearchUnion]

Returns SearchUnion.

A SearchInput. Its fields, and the part each one belongs to, are on its own page.

query {
search(searchInput: {
entityType: BRAND
name: "Safeway"
conditions: { limit: 1 }
}) {
... on Brand {
id
names(first: 1) { edges { node { name } } }
}
}
}

Response, as returned:

{
"data": {
"search": [
{
"id": "0f26fbef-3436-4f85-8bcd-31fe12a4f99a",
"names": {
"edges": [
{
"node": {
"name": "SAFEWAY"
}
}
]
}
}
]
}
}