MCPcopy Create free account
hub / github.com/andywer/postguard / getQueryPathParent

Function getQueryPathParent

src/postgres/query-traversal.ts:75–79  ·  view source on GitHub ↗
(
  path: QueryNodePath<QueryNode<any>>
)

Source from the content-addressed store, hash-verified

73}
74
75export function getQueryPathParent(
76 path: QueryNodePath<QueryNode<any>>
77): QueryNodePath<QueryNode<any>> | null {
78 return path.ancestors.length >= 1 ? path.ancestors[path.ancestors.length - 1] : null
79}

Callers 1

instantiateQueryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected