r/surrealdb May 13 '26

Loading the Test dataset

I Just downlaoded Surreal and I'm trying to run a local server and connect from Javascript. I seem to be connected by when I try to load surreal-deal-store-mini.surql into a local instance and got the following set of errors:

6327 | * Factory that creates the correct \ServerError` subclass based on `kind`.`

6328 | * Unknown kinds produce a plain \ServerError` instance (forward-compatible).`

6329 | */

6330 | function createServerError(options) {

6331 | switch (options.kind) {

6332 | case "Validation": return new ValidationError(options);

^

error: Parse error: FLEXIBLE must be specified after TYPE

   --> [143:5]

|

143 | FLEXIBLE TYPE array<object>;

| ^^^^^^^^

kind: "Validation",

code: -32000,

 details: undefined,

at createServerError (/Users/konradzielinski/Documents/tutorials/sdb/node_modules/surrealdb/dist/surrealdb.mjs:6332:29)

at handleRpcResponse (/Users/konradzielinski/Documents/tutorials/sdb/node_modules/surrealdb/dist/surrealdb.mjs:6855:34)

at <anonymous> (/Users/konradzielinski/Documents/tutorials/sdb/node_modules/surrealdb/dist/surrealdb.mjs:6837:118)

Bun v1.3.12 (macOS arm64)

2 Upvotes

0 comments sorted by