- Docs
- API reference
- Endpoints and schemas
- GraphQL
- Selection
CreateList
Fields of CreateList and how to reach it.
Selection. This type is a selection. An intent returns it, and you choose which of its fields come back.
The schema carries no description for this type.
Where it appears
Section titled “Where it appears”No connection leads here from a primary entity.
createListreturns it.
Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
list |
List |
The new list. |
search |
SearchUnion |
The selection that sets the attributes of each record in the list. The API saves this selection as searchInput.query. It does not return data in this field. |
Example
Section titled “Example”This intent writes, so the reference does not run it against production data. No response is shown.
mutation { createList(input: { name: "Texas grocery brands" listType: LIST_GENERATION searchInput: { entityType: BRAND prompt: "Grocery store brands in Texas" } }) { list { id name createdTimestamp } search { ... on Brand { id names(first: 1) { edges { node { name } } } } } }}