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

Method query

packages/y-graph-storage/src/YGraph.ts:83–87  ·  view source on GitHub ↗

* Create a live query. * @param query The query to create a live query for. * @returns A live query.

(
    query: (g: GraphTraversal<TSchema>) => TTraversal,
  )

Source from the content-addressed store, hash-verified

81 * @returns A live query.
82 */
83 public query<TTraversal extends Traversal<TSchema, any>>(
84 query: (g: GraphTraversal<TSchema>) => TTraversal,
85 ) {
86 return new LiveQuery(this, query(new GraphTraversal(this)));
87 }
88}
89
90function createGraphObserver<TSchema extends GraphSchema>(graph: YGraph<TSchema>) {

Callers 1

Calls 1

queryFunction · 0.50

Tested by

no test coverage detected