MCPcopy
hub / github.com/photonixapp/photonix / get_graphql_content

Function get_graphql_content

tests/utils.py:11–18  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

9
10
11def 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

Calls 1