GraphReFlyTS

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

ParameterTypeDescription
fragmentMemoryFragmentfragment value used by the helper.
queryMemoryQueryquery value used by the helper.

Returns

A boolean value.

Example

import { memoryFragmentMatchesQuery } from "@graphrefly/ts/patterns";

Source

packages/ts/src/patterns/semantic-memory.ts