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

Method constructor

packages/graph/src/QueryContext.ts:51–62  ·  view source on GitHub ↗
(
    graph: GraphSource<TSchema>,
    params: QueryParams = {},
    options: QueryContextOptions = {},
  )

Source from the content-addressed store, hash-verified

49 readonly #options: Required<QueryContextOptions>;
50
51 public constructor(
52 graph: GraphSource<TSchema>,
53 params: QueryParams = {},
54 options: QueryContextOptions = {},
55 ) {
56 this.#params = params;
57 this.#graph = graph;
58 this.#options = {
59 ...DEFAULT_QUERY_CONTEXT_OPTIONS,
60 ...options,
61 };
62 }
63
64 /**
65 * Get the query parameters.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected