OverviewOverview (opens in a new tab)DocumentationDocumentationCommunityCommunityBlogBlog
GitHubGitHub (opens in a new tab)
  • Introduction
  • Get started
    • Project set up
    • Define states
    • Adding mutations
    • Configuring the store
    • Using the engine
  • Schema
    • Introduction
    • Defining states
    • State inheritance
    • Either states
    • Mutations
    • Indexes and keys
    • Documentation and deprecation
    • Schema examples
      • Users schema example
      • Blog schema example
  • Stores
    • MongoDB
    • MySQL (soon)
    • PostgreSQL (soon)
    • SQLite (soon)
    • DynamoDB (soon)
    • Redis (soon)
  • Scalars
    • Big Int
    • Boolean
    • Buffer
    • Date Time
    • Email
    • False
    • Integer
    • Number
    • Object
    • String
    • True
    • Unknown
    • URL
  • Overview (opens in a new tab)
  • Documentation
    • Introduction
    • Get started
      • Project set up
      • Define states
      • Adding mutations
      • Configuring the store
      • Using the engine
    • Schema
      • Introduction
      • Defining states
      • State inheritance
      • Either states
      • Mutations
      • Indexes and keys
      • Documentation and deprecation
      • Schema examples
        • Users schema example
        • Blog schema example
    • Stores
      • MongoDB
      • MySQL (soon)
      • PostgreSQL (soon)
      • SQLite (soon)
      • DynamoDB (soon)
      • Redis (soon)
    • Scalars
      • Big Int
      • Boolean
      • Buffer
        • Signature
        • Examples
      • Date Time
      • Email
      • False
      • Integer
      • Number
      • Object
      • String
      • True
      • Unknown
      • URL
  • Community
  • Blog

On This Page

  • Signature
  • Arguments
  • Examples
  • MongoDB ObjectId
  • Varchar
  • Text
Question? Give us feedback → (opens in a new tab)Edit this page
Documentation
Scalars
Buffer

Buffer

The Buffer scalar type represents a binary data with a variable length.

Signature

Buffer(
  min?: Integer(min: 0),
  max?: Integer(min: 0),
)

Arguments

  • min - The minimum byte length of the buffer.
  • max - The maximum byte length of the buffer.

Examples

MongoDB ObjectId

Buffer(min: 12, max: 12)

Varchar

Buffer(max: 255)

Text

Buffer or Buffer(max: 65535)

BooleanDate Time

© Copyright 2023 Neuledge.