The UI probably needs some extra hints to guide users on this, but essentially you need to split those put-docs entries across separate transactions (otherwise the first version gets ~dropped, see also): XTDB Play
Alternatively, you could also specify distinct valid-times for the entries, e.g.: XT Fiddle
The ‘+’ button appeared to be disabled (it renders kinda greyed out). I had executed the two transactions one after the after, but editing and running each time.
Using the ‘+’ and adding the second transaction that way worked.
Been playing with xt fiddle a bit, and something that may add some value is being able to “elide assert failure(s)”, so that way invariants can be enforced against a query.
This fiddle demonstrates asserting a document has a different hash before attempting to put the document into the table. It’d be great to be able to have some sort of UX to “catch” the assertion failure and move onto the next transaction statement, rather than always fail.
Additionally, for the XTQL side, parens/quotations/bracket auto-encolsing makes editing queries and transactions a pain. There are many times I want to add forms, a single " character (or even ), ], }), and the editor(s) dissallow me to add those in some cases, or the editor interprets those to be appended to the end of the root form, even though I didn’t want it to go there.