@graphty/graphty-element / session / parseScope
Function: parseScope() ​
parseScope(
value):Scope
Defined in: graphty-element/src/catalog/sets/parse.ts:807
Check a scope and return its canonical form: an inline definition canonical, every other form as given.
Door mode: anything malformed, unknown or reserved (the keyword "search") is refused. Edge members inside { define } must be in stable form; a write door that accepts session edge ids converts them first.
Parameters ​
value ​
unknown
The candidate scope, from any source.
Returns ​
The scope.
Throws ​
A GraphtyError with code E_BAD_COMMAND, with details.reason as parseSetDefinition gives it for an inline definition.