REST using GraphQL
In addition to the "/graphql" resources, a REST resource called "/graphql/rest" is also available. This resource uses the same input as the GraphQL resource but transforms the output to a more REST friendly format with the following changes:
- The result in the "data" field is returned as the root element.
- An error is returned using a 400 Http status.
- If multiple queries are used, an error is returned. Only one query is supported in this mode.
- An additional query parameter exists ("filter") that can be used to remove the root elements to make the response easier to parse. This parameter uses a format like this: "field1.field2.field3". Json path is not supported.