validateAttributeName
validateAttributeName(
name):void
Defined in: src/schema/names.ts:60
Validates an attribute name against the engine’s Ident32 grammar and the query language’s
reserved words.
Parameters
Section titled “Parameters”string
The attribute name.
Returns
Section titled “Returns”void
Throws
Section titled “Throws”If the name is empty, starts with $ (reserved for system
attributes), too long, uses characters outside the grammar, contains -- (which opens a query
comment), or collides with a reserved word.