commercetools GraphQL binding spec
Detailed documentation on the commercetools GraphQL binding component
Component format
To setup commercetools GraphQL binding create a component of type bindings.commercetools
. See this guide on how to create and apply a binding configuration.
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: <NAME>
spec:
type: bindings.commercetools
version: v1
metadata:
- name: region # required.
value: "region"
- name: provider # required.
value: "gcp"
- name: projectKey # required.
value: "<project-key>"
- name: clientID # required.
value: "*****************"
- name: clientSecret # required.
value: "*****************"
- name: scopes # required.
value: "<project-scopes>"
Warning
The above example uses secrets as plain strings. It is recommended to use a secret store for the secrets as described here.Spec metadata fields
Field | Required | Binding support | Details | Example |
---|---|---|---|---|
region |
Y | Output | The region of the commercetools project | "europe-west1" |
provider |
Y | Output | The cloud provider, either gcp or aws | "gcp" , "aws" |
projectKey |
Y | Output | The commercetools project key | |
clientID |
Y | Output | The commercetools client ID for the project | |
clientSecret |
Y | Output | The commercetools client secret for the project | |
scopes |
Y | Output | The commercetools scopes for the project | "manage_project:project-key" |
For more information see commercetools - Creating an API Client and commercetools - Regions.
Binding support
This component supports output binding with the following operations:
create
Related links
- Basic schema for a Dapr component
- Bindings building block
- How-To: Trigger application with input binding
- How-To: Use bindings to interface with external resources
- Bindings API reference
- Sample app that leverages the commercetools binding with sample GraphQL query
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified May 31, 2024: Merge 61e65296a85dd35c3b7040b281b7c17caffcc144 into 27b6a61b0e1b0a30ea4e4f31bea712dfec3813b3 (525f2ab)