CreateIdBuilder

class CreateIdBuilder(thing: String, db: Surreal)

Create id builder

A builder for creating a new record with a specific id. Should be used in conjunction with jsonContent or content

Constructors

Link copied to clipboard
constructor(thing: String, db: Surreal)

Creates builder with the specified id and database connection

Functions

Link copied to clipboard
inline suspend fun <T> content(data: T): T

Content

Link copied to clipboard
suspend fun jsonContent(data: JsonObject): JsonObject

Json content