Edit Searchable Attributes

As you add or remove fields from you objects you may want to alter which fields are searchable. This can be done via the editSearchableFields mutation and supplying a list of fields.

🚧

Warning

It is important to note that this is an absolute list of searchable fields, so you must always supply all fields. If you're unsure which fields are searchable you can use the getSearchableFields query.

By default, the following fields are:

  • __typename
  • title
  • synopsis
  • name
  • slug
  • internal_title
  • text

Example

mutation MyMutation {
  editSearchableFields(fields: [
    "__typename",
    "title",
    "synopsis",
    "name",
    "slug",
    "internal_title",
    "text",
    "new_field"
  ])
}