Graphql util
FILE_PATH = Path(__file__).parent
module-attribute
GRAPH_QL_PATH = FILE_PATH / 'graphql'
module-attribute
execute_graphql_query(client, query_file_path, variables=None)
async
Efficient way to get query GitHub api.
Can request whatever is needed and get it all in one single request.
client: The GitHub client to use
query_file_path: The path to the file containing the graphql query
variables: Variables to pass with the query
get_query_from_path(path)
cached
Load a graphql query from a file path (caches the query since they are static).