DOKK / manpages / debian 12 / libgraphql-perl / GraphQL::Language::Parser.3pm.en
GraphQL::Language::Parser(3pm) User Contributed Perl Documentation GraphQL::Language::Parser(3pm)

GraphQL::Language::Parser - GraphQL Pegex parser

  use GraphQL::Language::Parser qw(parse);
  my $parsed = parse(
    $source
  );

Provides both an outside-accessible point of entry into the GraphQL parser (see above), and a subclass of Pegex::Parser to parse a document into an AST usable by GraphQL.

  parse($source, $noLocation);

NB that unlike in "Pegex::Parser" this is a function, not an instance method. This achieves hiding of Pegex implementation details.

Override of parent method. Returns a GraphQL::Error.

2022-03-27 perl v5.34.0