--- type: "operation" title: "Resource $graphql" resource: "Resource" operation: "graphql" --- # resource $graphql Execute a graphql statement **Description:** Execute a graphql statement on a since resource or against the entire system. See the [Using GraphQL with FHIR](graphql.html) page for further details. For the purposes of graphQL compatibility, this operation can also be invoked using a POST with the graphQL as the body, or a JSON body (see [graphQL spec](http://graphql.org/) for details) **Affects State:** false **System:** true **Type:** false **Instance:** true **URL:** http://hl7.org/fhir/build/OperationDefinition/Resource-graphql ## Parameters - **query** [in] 1..1 string - **result** [out] 1..1 Binary — The content is always returned as application/json; this SHOULD be specified in the Accept header