Diagram
  • Introduction
  • Get Started
    • Hello World
    • Connecting to a DB
    • From a template
  • Concepts
    • Endpoints
    • Algorithm
  • Nodes
    • Bcrypt
    • Code
    • Constant
    • Database
    • EasyDB
    • Firestore
    • If / Then
    • Request
    • Response
    • JWT
    • Mapper
    • MongoDB
    • Stripe
    • Webhook
  • Templates
    • Login
    • Register
    • Get User
  • Resources
    • Dashboard
    • Contact
    • FAQs
Powered by GitBook
On this page
  • General
  • Input
  • Output
  • Use Cases

Was this helpful?

  1. Nodes

Constant

General

The Constants node can be used to defined helper constants. This is usually useful to either utilise and query a database with or an external endpoint or return as part of an HTTP response.

Input

  • The Constants node has no input.

Output

  • Out: Returns an Object with the constants key-value params or an Array with Object, String, Number or Boolean. When there is ambiguity both options are shown on the right to pick the correct one.

Use Cases

Return a static message to the user.

  • Request (Get) ➡ Constants ➡ Response (200)

PreviousCodeNextDatabase

Last updated 3 years ago

Was this helpful?