module

InternalGraphqlParser

Parses GraphQL operation documents (query Foo { ... }, mutation Bar { ... }, subscription Baz { ... }) carried in .graphql files and emits one /graphql endpoint per named top-level operation.

SDL schema documents are handled separately by the graphql_sdl analyzer; this analyzer deliberately reports nothing for them.

Constants

OPERATION_KEYWORDS = {"query", "mutation", "subscription"}

Keywords that introduce a top-level operation definition.

Class methods

parse_content(path : String, file_content : String) : Array(Endpoint)
Source