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