The createSavedQueryFromPackageTemplate() GraphQL mutation field is used to create a saved query from a package saved query template.

For more information on saved queries, see the User Functions (Saved Searches) reference page where saved queries are discussed. You may also want to look at the Packages page for related information. Also, look at the Searching Data documentation page as it relates to recent queries and saving queries.

Syntax

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

graphql
createSavedQueryFromPackageTemplate(
      viewName: string!
      packageId: VersionedPackageSpecifier!
      savedQueryTemplateName: string!
      overrideName: string
   ): CreateSavedQueryFromPackageTemplateMutation!

Given and Returned Datatypes

The given datatype VersionedPackageSpecifier is just a scalar. However, the returned datatype CreateSavedQueryFromPackageTemplateMutation has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: CreateSavedQueryFromPackageTemplateMutation

ParameterTypeRequiredDefaultDescription
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 24, 2024
savedQuerySavedQueryyes The saved query to create from the package template. See SavedQuery.