This guide walks you through creating your first SOM-powered application.
Note: This package is currently tested against SurrealDB version 3.0.0.
Disclaimer
This library is currently considered HIGHLY EXPERIMENTAL and under heavy development. While basic functionality works, there could be unknown bugs. Not recommended for production use without thorough testing.
Step 1: Define Your Model
First, generate the static base files so types like som.Node are available:
// Start query in background
result := client.UserRepo().Query().
Where(filter.User.IsActive.IsTrue()).
AllAsync(ctx)
// Do other work...
// Get results when ready
users := <-result.Val()
err := <-result.Err()