bynk.event.pattern_unknown_field
Error A from Events(E { ... }) subscription pattern named a field that E does not declare.
A subscription pattern filters on the event's own fields, so each name in it must be one the event declares. A name that matches none could never filter anything, and is usually a misspelling; the diagnostic lists the declared fields. Use one of them.
Example
event Paid = { id: String, amount: Int }
service onPaid from Events(Paid { total: 10, .. }) { // ✗ `Paid` has no field `total`
service onPaid from Events(Paid { amount: 10, .. }) { // ✓In the Book
See also
- Every code in its category, Events, on the diagnostic index.
bynk explain bynk.event.pattern_unknown_fieldshows the same from the installed toolchain, without a network.