@@ -5,8 +5,9 @@ import type { editor } from 'monaco-editor';
55import { rqlLanguageDefinition , rqlLanguageConfiguration } from '@/lib/rql-language' ;
66import { brutalistLightTheme } from '@/lib/monaco-themes' ;
77import { cn } from '@/lib' ;
8- import type { WasmDB } from '@/lib/wasm/reifydb_webassembly ' ;
8+ import { createWasmDB , type WasmDB } from '@/lib/wasm-db ' ;
99import { seedCommand } from '@/lib/seed-data' ;
10+ import { UNDEFINED_VALUE , Value } from '@reifydb/core' ;
1011
1112let languageRegistered = false ;
1213
@@ -60,9 +61,8 @@ export function ExecutableSnippet({
6061
6162 async function initDb ( ) {
6263 try {
63- const { WasmDB } = await import ( '@/lib/wasm/reifydb_webassembly' ) ;
64+ const instance = await createWasmDB ( ) ;
6465 if ( mounted ) {
65- const instance = new WasmDB ( ) ;
6666 // Run seed command to populate tables for documentation examples
6767 try {
6868 instance . command ( seedCommand ) ;
@@ -349,7 +349,10 @@ export function ExecutableSnippet({
349349
350350function formatValue ( value : unknown ) : string {
351351 if ( value === null || value === undefined ) {
352- return 'null' ;
352+ return UNDEFINED_VALUE ;
353+ }
354+ if ( value instanceof Value ) {
355+ return value . toString ( ) ;
353356 }
354357 if ( typeof value === 'object' ) {
355358 return JSON . stringify ( value ) ;
0 commit comments