Skip to content

GraphQL query¤

Python Plugin

This operator is part of a Python Plugin Package. In order to use it, you need to install it, e.g. with cmemc.

This workflow task performs GraphQL operations by sending queries, mutations, and variables over operations. Allows for customization in the GraphQL query using, Jinja queries and Jinja variables, which can be obtained from entities. The result of the query is saved as a JSON document in a pre-created JSON dataset.

Parameter¤

Endpoint¤

The URL of the GraphQL endpoint you want to query. A collective list of public GraphQL APIs is available here. Example Endpoint: https://fruits-api.netlify.app/graphql

  • Datatype: string
  • Default Value: None

Query¤

The query text of the GraphQL Query you want to execute. GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. Learn more on GraphQL here. Example Query: query allFruits { fruits { id scientific_name tree_name fruit_name family origin description climatic_zone } }

  • Datatype: multiline string
  • Default Value: None

Query variables¤

Pass dynamic variables when making a query or mutation. Example Variables: {“id” : 1}

  • Datatype: multiline string
  • Default Value: {}

Target JSON Dataset¤

The Dataset where this task will save the JSON results.

  • Datatype: string
  • Default Value: None

OAuth access token¤

Access token that connects to a GraphQL endpoint to authorize and secure user access to resources and data.

  • Datatype: string
  • Default Value: None

Comments