API Reference
memoryFragmentMatchesQuery()
Pure structured-query predicate over a single fragment.
Import
import { memoryFragmentMatchesQuery } from "@graphrefly/ts/patterns";
Signature
function memoryFragmentMatchesQuery(
fragment: MemoryFragment,
query: MemoryQuery = {},
): boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
fragment | MemoryFragment | fragment value used by the helper. |
query | MemoryQuery | query value used by the helper. |
Returns
A boolean value.
Example
import { memoryFragmentMatchesQuery } from "@graphrefly/ts/patterns";
Source
packages/ts/src/patterns/semantic-memory.ts