Remote / foldkit-remote-server

RemoteInvalid

class · packages/remote-server/src/index.ts:130

class RemoteInvalid extends Schema.TaggedError<RemoteInvalid>()(
  'RemoteInvalid',
  {
    message: Schema.String,
    rule: Schema.Option(Schema.String),
    path: Schema.Array(Schema.String),
  },
) {}

A writer's word that the row a write would leave breaks one of its Entity's invariants: RemoteServer.write answers it as the mutation's Invalid refusal. rule and path are none and empty when saying them would tell the caller what a member hidden from them holds.