* Tests for IS LABELED Predicate * * Syntax: variable IS :Label or variable IS :LabelExpression * * Supports: * - n IS :Person - true if n has the Person label * - n IS :Person|Admin - true if n has Person OR Admin label * - n IS :!Person - true if n does NOT have Person label * - n IS NOT :
(_defaultValue: T)
| 22 | */ |
| 23 | |
| 24 | function makeType<T>(_defaultValue: T): StandardSchemaV1<T> { |
| 25 | return { |
| 26 | "~standard": { |
| 27 | version: 1, |
| 28 | vendor: "codemix", |
| 29 | validate: (value) => { |
| 30 | return { value: value as T }; |
| 31 | }, |
| 32 | }, |
| 33 | }; |
| 34 | } |
| 35 | |
| 36 | const schema = { |
| 37 | vertices: { |