parseAsGQLSelections

fun String.parseAsGQLSelections(options: ParserOptions = ParserOptions.Default): GQLResult<List<GQLSelection>>


fun BufferedSource.parseAsGQLSelections(filePath: String? = null, options: ParserOptions = ParserOptions.Default): GQLResult<List<GQLSelection>>

Parses the source to a List<GQLSelection>, validating the syntax but not the contents of the selections.

Closes BufferedSource

Parameters

filePath

the path of a file on the host filesystem where the source is coming from. If provided, filePath is used to display context for parsing errors. If the source doesn't come from a file, pass null.