Uncodie
Technical DocumentationNo CodeTutorialsChangelogDisccord
Developers
Developers
  • đź“–Documentation
    • Basic Concepts
      • Node JS
      • React
      • Postgres SQL
      • GraphQL
      • Git
      • API
  • 🔌API
    • Getting Started
      • Credentials
    • Users
      • Register User
    • Component Interface
      • Props
  • 🤖IDE
    • Getting started
    • Component View
      • CSS
      • Controller
      • Component
    • Compiler
    • Importing Code
      • Scripts
        • Manifest
      • Connectors
        • Manifest
      • Components
        • Manifest
    • Exporting Code
      • Design Systems
        • Custom React libraries
      • Guidelines
  • ⚙️Figma Plugin
    • Variables
      • Global Variables
      • Local Variables
      • Route Variables
      • Session Context
      • Window Variables
    • Actions
      • GraphQL Trigger
      • Refresh Query
      • Set Variable
      • Select and Navigate
  • 🎛️Settings
    • User Authentication
    • Git
    • External Deployment
    • Version Control
    • External DB Setup
    • SEO
Powered by GitBook
On this page
  • Overview
  • Setup
  • Uses cases
  • Parameters

Was this helpful?

  1. Figma Plugin
  2. Actions

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.

PreviousActionsNextRefresh Query

Last updated 1 year ago

Was this helpful?

⚙️