The updateQueryPrefix() GraphQL mutation is used to update a query prefix for a group in a view in LogScale.

There is some mention of query prefixes on the Query Monitor documentation page that you may find helpful.

Syntax

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

graphql
updateQueryPrefix(
      input: UpdateQueryPrefixInput!
   ): UpdateQueryPrefixMutation!

Given Datatypes

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

Table: UpdateQueryPrefixInput

ParameterTypeRequired[a]DefaultDescription
groupIdstringyes The unique identifier of the group associted with the query.
queryPrefixstringyes The query prefix to update.
viewIdstringyes The unique identifier of the view associated with the 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 UpdateQueryPrefixMutation has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: UpdateQueryPrefixMutation

ParameterTypeRequired[a]DefaultDescription
groupGroupyes The group for which to update the query prefix. See Group.

[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.