MCPcopy Create free account
hub / github.com/codemix/graph / makeType

Function makeType

packages/graph/src/test/isLabeled.test.ts:24–34  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

22 */
23
24function 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
36const schema = {
37 vertices: {

Callers 1

isLabeled.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected