The createParserFromPackageTemplate() GraphQL mutation field may be used to create a parser from a package parser template.

For more information on creating a parser, see the Creating a Parser documentation page. You may also want to look at the Parsing Data and Packages pages for related information.

Syntax

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

graphql
createParserFromPackageTemplate(
      viewName: string!
      packageId: VersionedPackageSpecifier!
      parserTemplateName: string!
      overrideName: string
   ): CreateParserFromPackageTemplateMutation!

Given and Returned Datatypes

The given datatype VersionedPackageSpecifier is a scalar value. The returned datatype CreateParserFromPackageTemplateMutation has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: TECreateParserFromPackageTemplateMutationXT

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
parserParseryes The parser to create from the package template. See Parser.