GraphQL Trigger
This action will enable the execution of Gql requests through an action associated with an event.
Overview
In Uncodie, you can make GraphQL requests by writing GraphQL queries or configuring NoCode requests. However, users have consistently reported that the options for executing them have been very limited. For example, Gql mutations can only be executed through a form or within a script. The "GraphQL Request Trigger" action seeks to provide a solution by offering users an action from which they can execute these requests directly from the action section, giving them full control over when Gql requests are executed.
Setup
Select the element where you want the instruction to be executed.
Open the Uncodie plugin and go to the components section.
In actions, create a new action.
Choose the event that will trigger the action and select the “GraphQLRequestTrigger” option.
Select Graphql type (query or mutation)
Select Graphql request
Add success script or Failed script
Uses cases
Retrieve query data without relying on QueryProvider.
Mutate data without depending on a form.
Parameters
Type: The type describes what type of GraphQL request will be executed
Graphql request: This parameter will allow defining the GraphQL request that will be executed.
Success script: This parameter will allow defining the script that will be executed when the request is successfully executed.
Failed script: This parameter allows defining the script that will be executed if the request fails.
Last updated
Was this helpful?