Documentation Center

@raw directive

The @raw directive returns the JSON of the object as a raw, escaped string.

Examples

Content
{
  "Page": {
    "content": "test content",
    "header": "content header"
  }
}
Model
type Page {
  rawContent : String @raw
}
Query
getContent() {
  rawContent
}
Result
{
  "data": {
    "rawContent": "{Page\" :{\"content\" : \"test content\", \"header\" : \"content header\"}}"
    }
  }
}