ErrorsReads and writes · rule
data.conflict_unknown
Conflict mapping names no unique rule or reference.
Area 6, Reads and writes; not declinable; the next step is usually the agent's.
entity Customer { id: Uuid email: Email { unique: true }}type EmailTaken = Failure { kind: FailureKind.conflict}action register(email: Customer.email) fails EmailTaken -> Customer { return attempt Customer.create { set: { email: email } conflict: { Customer.mail: EmailTaken } }}
error Customer.mail names no unique rule or reference
--> main.jadpo:18:13
|18 | Customer.mail: EmailTaken | ^^^^^^^^^^^^^ not a rule
- reason
- A
conflict:arm is keyed by the rule the store refuses, writtenEntity.name: a field withunique: true, a rule named inunique:, arestrictedreference that refuses a delete, or a lifecycle transition whosewhen:can refuse it.Customer.createcan breakCustomer.email. Did you meanCustomer.email? - next
- Use
Customer.emailinstead ofCustomer.mail(agent) - rule
- data.
conflict_ unknown - help
- https://jadpo.
dev/docs/errors/data. conflict_ unknown
Markdown for agents: /docs/errors/data.conflict_unknown.md.Built from Jadpo main at aee2e8f.