# Query edges

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

> Query one edge 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/edges/resolution_decision/query`

Returns a paginated, filtered, and sorted page of `resolution_decision` edges from the patient context graph — the structured counterpart to `list-edges`, 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-resolution-decision-edges` in the [OpenAPI spec](https://docs.clinia.com/openapi.yaml).

## `POST /v1/patients/{patientId}/graph/edges/resolves_to/query`

Returns a paginated, filtered, and sorted page of `resolves_to` edges from the patient context graph — the structured counterpart to `list-edges`, 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-resolves-to-edges` in the [OpenAPI spec](https://docs.clinia.com/openapi.yaml).

## `POST /v1/patients/{patientId}/graph/edges/chunked_into/query`

Returns a paginated, filtered, and sorted page of `chunked_into` edges from the patient context graph — the structured counterpart to `list-edges`, 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-chunked-into-edges` in the [OpenAPI spec](https://docs.clinia.com/openapi.yaml).

## `POST /v1/patients/{patientId}/graph/edges/relationship/query`

Returns a paginated, filtered, and sorted page of `relationship` edges from the patient context graph — the structured counterpart to `list-edges`, 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-relationship-edges` in the [OpenAPI spec](https://docs.clinia.com/openapi.yaml).