- Docs
- API reference
- Endpoints and schemas
- GraphQL
- Intent
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.
Signature
Section titled “Signature”search(searchInput: SearchInput!): [SearchUnion]Returns SearchUnion.
searchInput
Section titled “searchInput”A SearchInput. Its fields, and the part each one belongs to, are on its own page.
Example
Section titled “Example”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" } } ] } } ] }}