# Query nodes

URL: https://docs.clinia.com/api/rest/post-patients-patientId-graph-nodes-type-query

> Query one node type of the patient context graph with conditions that don't fit query-string params. Each type declares its own `filter` and `sort` fields.

## `POST /v1/patients/{patientId}/graph/nodes/extracted_fact/query`

Returns a paginated, filtered, and sorted page of `extracted_fact` nodes from the patient context graph — the structured counterpart to `list-nodes`, for conditions that don't fit query-string params. `filter` and `sort` narrow to the fields this type declares; see the request body schema for its vocabulary.

Parameters, request body and responses: operation `query-extracted-fact-nodes` in the [OpenAPI spec](https://docs.clinia.com/openapi.yaml).

## `POST /v1/patients/{patientId}/graph/nodes/fact/query`

Returns a paginated, filtered, and sorted page of `fact` nodes from the patient context graph — the structured counterpart to `list-nodes`, for conditions that don't fit query-string params. `filter` and `sort` narrow to the fields this type declares; see the request body schema for its vocabulary.

Parameters, request body and responses: operation `query-fact-nodes` in the [OpenAPI spec](https://docs.clinia.com/openapi.yaml).

## `POST /v1/patients/{patientId}/graph/nodes/extracted_narrative/query`

Returns a paginated, filtered, and sorted page of `extracted_narrative` nodes from the patient context graph — the structured counterpart to `list-nodes`, for conditions that don't fit query-string params. `filter` and `sort` narrow to the fields this type declares; see the request body schema for its vocabulary.

Parameters, request body and responses: operation `query-extracted-narrative-nodes` in the [OpenAPI spec](https://docs.clinia.com/openapi.yaml).

## `POST /v1/patients/{patientId}/graph/nodes/narrative_passage/query`

Returns a paginated, filtered, and sorted page of `narrative_passage` nodes from the patient context graph — the structured counterpart to `list-nodes`, for conditions that don't fit query-string params. `filter` and `sort` narrow to the fields this type declares; see the request body schema for its vocabulary.

Parameters, request body and responses: operation `query-narrative-passage-nodes` in the [OpenAPI spec](https://docs.clinia.com/openapi.yaml).

## `POST /v1/patients/{patientId}/graph/nodes/narrative/query`

Returns a paginated, filtered, and sorted page of `narrative` nodes from the patient context graph — the structured counterpart to `list-nodes`, for conditions that don't fit query-string params. `filter` and `sort` narrow to the fields this type declares; see the request body schema for its vocabulary.

Parameters, request body and responses: operation `query-narrative-nodes` in the [OpenAPI spec](https://docs.clinia.com/openapi.yaml).

## `POST /v1/patients/{patientId}/graph/nodes/learned_memory/query`

Returns a paginated, filtered, and sorted page of `learned_memory` nodes from the patient context graph — the structured counterpart to `list-nodes`, for conditions that don't fit query-string params. `filter` and `sort` narrow to the fields this type declares; see the request body schema for its vocabulary.

Parameters, request body and responses: operation `query-learned-memory-nodes` in the [OpenAPI spec](https://docs.clinia.com/openapi.yaml).

## `POST /v1/patients/{patientId}/graph/nodes/extracted_clinical_event/query`

Returns a paginated, filtered, and sorted page of `extracted_clinical_event` nodes from the patient context graph — the structured counterpart to `list-nodes`, for conditions that don't fit query-string params. `filter` and `sort` narrow to the fields this type declares; see the request body schema for its vocabulary.

Parameters, request body and responses: operation `query-extracted-clinical-event-nodes` in the [OpenAPI spec](https://docs.clinia.com/openapi.yaml).