Back to top
  Back to overview

Functions

SurrealDB comes with a large number of in-built functions for checking, manipulating, and working with many different types of data. These functions are grouped into a number of different packages, which can be seen below.

Array functions

Functions for working with and manipulating arrays of data

Count functions

Functions for counting fields, and expressions

Crypto functions

Functions for data hashing, encryption, and authentication

Geo functions

Functions for working with and analysing geospatial data

HTTP functions

Functions for opening and submitting remote web requests

Validation functions

Functions for checking and validating data formatting

Math functions

Functions for mathematical operations and numeric analysis

Parse functions

Functions for parsing email addresses and URLs

Rand functions

Functions for generating random data values

String functions

Functions for working with and manipulating string values

Time functions

Functions for working with and manipulating datetime values

Type functions

Functions for generating and ensuring specific data types

Scripting functions

Use JavaScript to create advanced functions with complex logic