• tailor.tech
Get a demo
  • API
  • Documentation
  • Support
  • Home

    • Introduction
  • Getting started

    • Overview
    • Quickstart
    • Console
    • Core Concepts
    • GraphQL basics
    • CUE basics
  • Tutorials

    • Overview
    • Managing data schema
    • Activating services
    • Chaining queries
    • Setting up Auth
    • Setting up Executor
    • Develop app from scratch
  • Using the Tailor Platform

    • TailorCLI
    • Application
    • Tailor DB
    • Auth
    • Pipeline
    • StateFlowDeprecated
    • Executor
    • Events
    • Function
    • Secret Manager
    • Static Web HostingPreview
    • Seeding data
    • Integration guide
  • Administration

    • Workspace
    • Accounts and Roles
    • Data Retention
  • References

    • Tailor CLI
    • API References
    • Character Encodings
    • Terraform Import
    • Platform Limits
    • Timeouts
    • Service Lifecycle Policy
    • Tailor Console
    • Scripting Languages
    • Security
  • Sign in

Examples

These examples show how to use the Function service to run JavaScript as serverless functions on the Tailor Platform, deploy them, and trigger them via Pipeline resolvers.

Here are the code examples.

We use TypeScript in the examples.

GitHub

Insert Default Value

Learn how to use Kysely with TailorDB to insert records with default values, including using defaultValues() and SQL DEFAULT for specific columns.

GitHub

Vector Search

Discover how to use Kysely with TailorDB's vector similarity search functionality to find records based on semantic similarity.

GitHub

With pdfme

A sample for executing pdfme in the Function service.

GitHub

With Secret Manager

A sample for executing Secret Manager in the Function service.

GitHub

With iconv

Learn how to use character encoding conversion with tailor.iconv APIs to encode, decode, and convert between different character encodings like UTF-8, Shift_JIS, and ASCII.

GitHub

TailorDB File Operations

Learn how to use TailorDB File Type operations from functions, including uploading, downloading, streaming, and managing file metadata using the tailordb.file API.

GitHub

With AuthConnection

Learn how to use OAuth2 authentication connections to access external APIs like Google, Microsoft 365, and QuickBooks from your Functions.

© tailor inc.2025. All rights reserved.

Follow us on GitHub