command–query separation

principle that every method should either be a command that performs an action, or a query that returns data to the caller, but not both; asking a question should not change the answer
Thing Programming Principle Q3954590

Facts

2 properties
Instance of
programming principle
Discoverer or inventor
Bertrand Meyer[2]
🏷️ Also known as
en command–query separation de Kommando-Abfrage-Trennung de QCS de Command-Query-Separation fr Séparation commande–requête ja コマンドとクエリの分離 ru CQRS
🔖 Identifiers · 2
Freebase ID
/m/01qp5j
Microsoft Academic ID (discontinued)
207044243

Report an error or request removal Lineage (PROV-JSON)

🔗 Connections
Discoverer or inventor 1
Press Enter · cited answer in seconds

Summary

command–query separation is a programming principle[1].

References

Programmatic citations — every numbered marker resolves to a verifiable graph row below.

Direct Wikidata claims

  1. [2] ↑ . wikidata.org.

Class ancestry

  1. [1] ↑ . Wikidata. wikidata.org.

📑 Cite this page

Use these citations when quoting this entity in research, articles, AI prompts, or wherever provenance matters. We aggregate Wikidata + Wikipedia + authoritative open-data sources; the stitched, scored, cross-referenced view is what 4ort.xyz contributes.

APA 4ort.xyz Knowledge Graph. (2026). command–query separation. Retrieved November 14, 2026, from https://4ort.xyz/entity/command-query-separation
MLA “command–query separation.” 4ort.xyz Knowledge Graph, 4ort.xyz, 14 Nov. 2026, https://4ort.xyz/entity/command-query-separation.
BibTeX @misc{4ortxyz_command-query-separation_2026, author = {{4ort.xyz Knowledge Graph}}, title = {{command–query separation}}, year = {2026}, url = {https://4ort.xyz/entity/command-query-separation}, note = {Accessed: 2026-11-14}}
LLM prompt According to 4ort.xyz Knowledge Graph (aggregator of Wikidata, Wikipedia, and authoritative open-data sources): command–query separation — https://4ort.xyz/entity/command-query-separation (retrieved 2026-11-14)

Canonical URL: https://4ort.xyz/entity/command-query-separation · Last refreshed: