# pub.techne.draft.receipt.query

> Which fields of a rule's receipt fill the shared query roles: the records it wrote (outputs) are its references, so a read finds the receipt that accounts for a record. Its subject is the record the rule ran on.

- Kind: queryDocument
- Authority: receipt.draft.techne.pub
- Lexicon: 1
- Published by [lexicons.techne.town](https://lexicon.garden/identity/did:plc:cbtfheqpi4g6vlrha4tpoh53), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:cbtfheqpi4g6vlrha4tpoh53/pub.techne.draft.receipt.query)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:cbtfheqpi4g6vlrha4tpoh53/pub.techne.draft.receipt.query/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:cbtfheqpi4g6vlrha4tpoh53/pub.techne.draft.receipt.query/analytics)

## QueryDocument (`pub.techne.draft.receipt.query`)

Type: queryDocument

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "roles": {
        "references": [
          "outputs[].uri"
        ]
      },
      "subject": "subject.uri",
      "type": "queryDocument"
    }
  },
  "description": "Which fields of a rule's receipt fill the shared query roles: the records it wrote (outputs) are its references, so a read finds the receipt that accounts for a record. Its subject is the record the rule ran on.",
  "id": "pub.techne.draft.receipt.query",
  "lexicon": 1
}
```
