Variable "$id" is not defined by operation "GetPost".

PHP
query GetPost($id: String!) {
  post(id: $id) {
    body
  }
}

Source

Also in PHP: