Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Cardinality constraints are sometimes not respected within a single transact #531

@rnewman

Description

@rnewman
mentat=> .q [:find ?card . :where [:db/doc :db/cardinality ?c] [?c :db/ident ?card]]
:db.cardinality/one

mentat=> .t [{:db/ident :db/valueType, :db/doc "foo bar"}{:db/ident :db/valueType, :db/doc "foo baz"}]
TxReport { tx_id: 268435457, tx_instant: 2018-01-22T21:47:34.068482Z, tempids: {} }

mentat=> .q [:find ?e ?v :where [?e :db/doc ?v]]

7	"foo bar"
7	"foo baz"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions