API Stability Long-Term

The unstarQuery() GraphQL mutation may be used to unstar a saved query in user settings in LogScale.

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 unstarQuery() mutation field:

graphql
unstarQuery(
      input: RemoveStarFromQueryInput!
   ): SavedQueryStarredUpdate!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  unstarQuery( input:
    { searchDomainName:"humio",
      savedQueryId: "abc123" }
  )
    { savedQuery { isStarred } }
}
Example Responses
Show:
json
{
  "data": {
    "unstarQuery": {
      "savedQuery": {
        "isStarred": false
      }
    }
  }
}

Given Datatypes

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

Table: RemoveStarFromQueryInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 19, 2024
savedQueryIdstringyes Long-TermThe unique identifier of the saved query from which to remove the star.
searchDomainNamestringyes Long-TermThe unique identifier of the search domain associated with the saved query.

Returned Datatypes

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

Table: SavedQueryStarredUpdate

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Oct 3, 2024
savedQuerySavedQueryIsStarredyes Long-TermThe started query to update. See SavedQueryIsStarred.