API Stability Long-Term

The setFieldConfiguration() GraphQL mutation field is used to save UI styling and other properties for a field. They'll be used whenever the field is added to a table or event list in LogScale's UI.

Syntax

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

graphql
setFieldConfiguration(
      input: FieldConfigurationInput!
   ): boolean!

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

Show:
graphql
mutation {
  setFieldConfiguration( input: {
    viewId: "X4aZ7KP4AeTvKkigOV3G1ZWy",
    fieldName: "#kind",
    json: [ { #type=kv } ]
  }  )
}
Example Responses
Show:
json
{
  "data": {
    "setFieldConfiguration": true
  }
}

Given Datatypes

For FieldConfigurationInput, there are a few parameters that may be given. Below is a list of them along with a description of each:

Table: FieldConfigurationInput

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 18, 2024
fieldNamestringyes  The name of the field for configuration.
jsonJSONyes  The json configuration.
viewIdstringyes  The unique identifier for the view.