All Release Notes

Introducing Google Cloud Function destination for API Extensions

17 February 2023
Enhancement
ExtensibilityGraphQL

We have enhanced API Extensions to support Cloud Functions natively.

Using the GoogleCloudFunctionDestination you can directly invoke Cloud Functions without providing authorization headers or having to use intermediate gateways.

The new destination uses the permissions granted through Identity and Access Management (IAM) of Google Cloud Platform projects. Visit the API Extensions reference to learn more about using IAM-authorized Cloud Functions as destinations for your API Extensions.

Changes:

  • [API] Added GoogleCloudFunctionDestination to API Extensions.
  • [GraphQL API] Added the following types to the GraphQL schema: GoogleCloudFunctionDestination, GoogleCloudFunctionDestinationInput.
  • [GraphQL API] Changed the ExtensionDestinationInput type:
    • Input field GoogleCloudFunction was added to ExtensionDestinationInput type.

The following changes were introduced in terms of GraphQL SDL:

extend input ExtensionDestinationInput {
GoogleCloudFunction: GoogleCloudFunctionDestinationInput
}
type GoogleCloudFunctionDestination implements ExtensionDestination {
url: String!
type: String!
}
input GoogleCloudFunctionDestinationInput {
url: String!
}