Skip to main content

prefect_github.graphql

This is a module containing generic GraphQL tasks

Functions

aexecute_graphql

Async version of execute_graphql. See execute_graphql for full documentation.

execute_graphql

Generic function for executing GraphQL operations. Args:
  • op: The operation, either as a valid GraphQL string or sgqlc.Operation.
  • github_credentials: Credentials to use for authentication with GitHub.
  • error_key: The key name to look out for in the response that indicates an error has occurred with the request.
Returns:
  • A dict of the returned fields.
Examples: Queries the first three issues from the Prefect repository using a string query.
Queries the first three issues from Prefect repository using a sgqlc.Operation.