Get's GraphQL content from the response, and optionally checks if it contains any operating-related errors, eg. schema errors or lack of permissions.
(response)
| 9 | |
| 10 | |
| 11 | def get_graphql_content(response): |
| 12 | """Get's GraphQL content from the response, and optionally checks if it |
| 13 | contains any operating-related errors, eg. schema errors or lack of |
| 14 | permissions. |
| 15 | """ |
| 16 | content = _get_graphql_content_from_response(response) |
| 17 | assert "errors" not in content, content["errors"] |
| 18 | return content |