How can I create a record with an ID from a variable?

Viewed 93

I'm trying to create a record in SurrealQL with a variable:

CREATE student:$name SET age = 38

but for some reason the syntax isn't allowed. Any idea why this is the case?

1 Answers
Related