GraphQL Trigger

The GraphQL Trigger lets the Flogo app act as the GraphQL server. To use this trigger, you simply upload your GraphQL schema and TIBCO Cloud Integration- Flogo (PAYG) automatically creates the flows corresponding to each query or mutation field in your schema.

Settings

Field Description
Port The port on which the trigger listens to requests. By default, it is set to 7879. You can change this to use any other port that is open. This field can also be set using an application property.
Path The HTTP resource path for the operation. By default, it is set to /graphql, but you can change it to any string that is meaningful to you. It is the single endpoint that GraphQL queries and mutations use to access data from the multiple resources on the server. This field can also be set using an application property.
Secure Connection By default, it is set to False. If you set this field to True, you can create a secure endpoint by providing Server Key and CA or Server Certificate.

Server Key - A PEM encoded private key file

CA or Server Certificate - A PEM encoded CA or self-signed server certificate file

GraphQL Operation The type of Graphql operation the flow should represent. You can select either Query or Mutation
Resolver for This field is populated based on the type of GraphQL Operation that you selected. If you selected Query, the Resolver For lists the field names under the query type in the schema. If you select Mutation, the drop down menu lists the field names under the mutation type in the schema.

Map to Flow Inputs

The Map to Flow Inputs tab contains an element, arguments, which contains a list of fields or objects that match the input arguments of the Resolver For field in the GraphQL schema.

Map from Flow Outputs

The Map from Flow Outputs tab contains a child element, data, which contains either a simple type or an object that match the output type of the Resolver For field in the GraphQL schema. If the output type of the field is an interface type, the data will contain a single field of type any.

Related reference