Skip to content

Move Peer vs Client API digression to end of Find specs chapter - #43

Merged
thiagooak merged 1 commit into
mainfrom
ticket-36-find-specs-digression
Sep 21, 2026
Merged

thiagooak merged 1 commit into
mainfrom
ticket-36-find-specs-digression

Conversation

@thiagooak

Copy link
Copy Markdown
Owner

Summary

  • The Find specs chapter opened with a 4-paragraph digression on Peer vs Client APIs before the learner had run a single collection or scalar find, and before "Peer" or "Client" meant anything to them.
  • Moved that content (verified accurate) into a collapsed <details> "Under the hood: Peer API vs Client API" box at the end of the chapter, so a reader can skip it and lose nothing needed later.
  • The four result-shape sections (Relation, Collection, Scalar, Tuple) now come first, right after the intro paragraph.

Verified at a REPL against this site's actual database: the Client API rejects a scalar find ([:find ?name . :where ...]) with Only find-rel elements are allowed in client :find, confirming the digression's core claim before moving it.

Out of scope, left for a separate pass: the ticket's suggestion #3 ("state once, early, e.g. in Modeling, that samples use datomic.client.api") touches modeling-data.edn, outside this ticket's file scope.

Closes #36

Test plan

  • clojure -X:test — 32 tests, 493 assertions, 0 failures

🤖 Generated with Claude Code

The chapter opened with a 4-paragraph API digression before the
learner had run a single find spec, front-loading implementation
detail ahead of the intrinsic concept (the four result shapes).
Moved it into a collapsed "Under the hood" section at the end.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@thiagooak
thiagooak merged commit 3ace47c into main Sep 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PED-07: The Peer-vs-Client digression adds extraneous load

1 participant