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
      • Date Time
      • Email
        • Signature
        • Examples
      • False
      • Integer
      • Number
      • Object
      • String
      • True
      • Unknown
      • URL
  • Community
  • Blog

On This Page

  • Signature
  • Arguments
  • Examples
  • Basic
  • Normalized
  • Gmail only
Question? Give us feedback → (opens in a new tab)Edit this page
Documentation
Scalars
Email

Email

The Email scalar type represents a string email address.

Signature

Email(
  at?: String,
  lowercase?: Boolean,
)

Arguments

  • at - Limit the email address to a specific domain.
  • lowercase - Convert the email address to lowercase.

Examples

Basic

Email

Normalized

Email(lowercase: true)

Gmail only

Email(at: "gmail.com")

Date TimeFalse

© Copyright 2023 Neuledge.