The setDefaultSavedQuery() GraphQL mutation is used to set the query that should be loaded on entering the Search page in a specific view.

For more information on saved queries, see the User Functions (Saved Searches) reference page where saved queries are discussed. Also, look at the Searching Data documentation page as it relates to recent queries and saving queries.

Syntax

Below is the syntax for the setDefaultSavedQuery() mutation field:

graphql
setDefaultSavedQuery(
      input: SetDefaultSavedQueryInput!
   ): BooleanResultType!

Given Datatypes

For the given datatype, SetDefaultSavedQueryInput, there are several parameters that may be given. Below is a list of them along with their datatypes and a description of each:

Table: SetDefaultSavedQueryInput

ParameterTypeRequired[a]DefaultDescription
savedQueryIdstring  The unique identifier of the saved query to make default.
viewNamestringyes The name of the view related to the saved query.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.


Returned Datatypes

The returned datatype BooleanResultType has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: BooleanResultType

ParameterTypeRequired[a]DefaultDescription
resultsbooleanyes Whether the mutation was performed or not.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.