relationBefore
relationBefore(
text):string|undefined
Defined in: libs/language/src/typeqlite-completion.ts:88
The relation a role being typed belongs to, read from the text before the cursor. The statement is unfinished, so it may not parse, and the text is all there is.
plays employment:|andredefine employment:|: the label before the colon.$e isa employment (|,employment (|,… isa employment, links (|: the relation the players belong to.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string | undefined
TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.