# Loki Query Result

Reusable Loki Query Result contract.

Canonical URL: https://opennodeflow.dev/wiki/reference-dev-loki-type-query-result/
JSON reference: https://opennodeflow.dev/wiki/reference-dev-loki-type-query-result/index.json
Source snapshot: 2026-10-23

Loki Query Result preserves known provider fields and explicit JSON extensions. It is shared across the Loki operations that use this resource. Optional absence and explicit null are distinct.

Schema:

```json
{
  "type": "object",
  "properties": {
    "resultType": {
      "type": "string",
      "enum": [
        "streams",
        "vector",
        "matrix",
        "scalar"
      ]
    },
    "result": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/ONFJsonValue"
      }
    },
    "stats": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/definitions/ONFJsonValue"
      }
    }
  },
  "additionalProperties": {
    "$ref": "#/definitions/ONFJsonValue"
  },
  "definitions": {
    "ONFJsonValue": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/definitions/ONFJsonValue"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/definitions/ONFJsonValue"
          }
        }
      ]
    }
  }
}
```

Source: https://grafana.com/docs/loki/latest/reference/loki-http-api/

Pure type; no credentials or external effects.

## Catalog identity

| Field | Value |
| --- | --- |
| Source key | `dev.loki.type.query-result` |
| Kind | type |
| Family | loki |
| Pack | pack_loki |

[Integration guide](/wiki/integration-loki/) · [Browse the catalog](/wiki/integration-catalog/)



## Configuration schema


```json
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
```





## Source and installed versions

This reference describes the maintained source catalog snapshot, not a live export of your installation. Published definitions use immutable versions; installed graphs retain their exact pins. Discover and read the installed definition and selected version before wiring it. See [versioning](/wiki/versioning/), [connections](/wiki/connections/) and [integration setup](/wiki/integration-setup/).

---

## Documentation provenance

- `../OpenNodeFlow-Library/work/catalog-all.mjs`
- `../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs`
- `../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs`
- `shared/seed.ts`
- `shared/storage-library.ts`
- `shared/variable-library.ts`
- `shared/control-flow.ts`
- `shared/remote-routes.ts`
- `server/runtime-library.ts`
- `shared/error-library.ts`
- `shared/storage-model.ts`
- `shared/builtin-documentation.ts`

This page describes maintained source, not a live inventory or an authorization to perform actions.
