The updatePackageFromRegistryV2() GraphQL mutation field may be used to update a package in a specified view in LogScale.

For more information on packages, see the Packages documentation page.

Syntax

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

updatePackageFromRegistryV2(UpdatePackageFromRegistryInput: UpdatePackageFromRegistryInput!): PackageUpdateResult!

Given Datatypes

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

Table: UpdatePackageFromRegistryInput

ParameterTypeRequired[a]DefaultDescription
viewNameRepoOrViewNameyes The name of the view related to the package. The type, RepoOrViewName is a scalar.
packageIdVersionedPackageSpecifieryes The unique identifier for the package.
conflictResolutions[ConflictResolutionConfiguration]yes List of resolutions to any conflicts encountered.

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

Table: PackageUpdateResult

ParameterTypeRequired[a]DefaultDescription
packagePackage2yes The package that was updated (see Package2 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.