bindMap

fun bindMap(version: <Error class: unknown class>, savedAt: Instant): Map<String, Any?>

Bind values for a write. The natural key is (schemaName, contentHash).

savedAt is a parameter, so this stays a pure function of its arguments and a test can pin the instant a version was stored at.

entityTypeAliases binds null when the version declares no former names. A Cypher SET of null leaves no property behind, which is the encoding the read side expects and the shape an older writer left.