Skip to content

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.

string

The attribute name.

void

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.