Skip to content

Add support for block strings #298

@frasercobb

Description

@frasercobb

Hello,
This is a feature request to support "Block Strings" as per the spec: https://facebook.github.io/graphql/June2018/#sec-String-Value

I have reproduced this issue in the starwars example in this repo.

Example mutation that will trigger this issue:

mutation {
  createReview(episode:NEWHOPE, review: {stars: 0, commentary: """1
    2"""}) {
    stars
  }
}

Response:

{
  "errors": [
    {
      "message": "syntax error: unexpected \"\\\"1\\n\", expecting Ident",
      "locations": [
        {
          "line": 31,
          "column": 66
        }
      ]
    }
  ]
}

Log output: <input>:31:66: literal not terminated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions