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

Function makeType

packages/graph/src/test/queryExecution.test.ts:11–21  ·  view source on GitHub ↗
(_defaultValue: T)

Source from the content-addressed store, hash-verified

9import type { Query } from "../AST.js";
10
11function makeType<T>(_defaultValue: T): StandardSchemaV1<T> {
12 return {
13 "~standard": {
14 version: 1,
15 vendor: "codemix",
16 validate: (value) => {
17 return { value: value as T };
18 },
19 },
20 };
21}
22
23// Helper function to execute a query string against a graph
24function executeQuery(

Callers 3

setupQueryExecutionGraphFunction · 0.70
setupMultiLabelGraphFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected