updateView()

The updateview() GraphQL mutation is used to update a view in LogScale.

For more information on views, see the Creating a Repository or View documentation page. You may also want to look at the Repositories & Views and Views pages for related information.

Syntax

Below is the syntax for the updateview mutation field:

updateView(viewName: string!, connections: [ViewConnectionInput!]!): View!

Given Datatypes

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

Table: ViewConnectionInput

ParameterTypeRequired[a]DefaultDescription
repositoryNamestringyes The name of the connected repository.
filterstringyes The filter applied to all results from the repository.
languageVersionLanguageVersionEnum = legacyyes The version of Human language to use: legacy, xdr1, or xdrdetects1. If non-null, it will be a version known by the current LogScale installation. See LanguageVersionEnum Table.

[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 View has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: View

ParameterTypeRequired[a]DefaultDescription
connections[ViewConnection]yes The connections for the view (see ViewConnection Table).
federated[FederatedQueryConnection]yes The connection between a view and a repository in a remote cluster. (see FederatedQueryConnection Table).
idstringyes The unique identifier of the view.
nameRepoOrViewNameyes This is a scalar.
descriptionstringyes A description of the view.
deletedDatelongyes The point in time the search domain was marked for deletion.
permanentlyDeletedAtstringyes The point in time the search domain will not be restorable anymore.
isStarredbooleanyes Whether the view should be marked with a star.

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