parseString function

DocumentNode parseString(
  1. String source, {
  2. dynamic url,
})

Parses source string and returns DocumentNode.

Supports both GraphQL SDL and executable definitions.

Implementation

DocumentNode parseString(
  String source, {
  dynamic url,
}) =>
    parse(
      SourceFile.fromString(
        source,
        url: url,
      ),
    );