Member Junction
    Preparing search index...

    Type Alias WriteRefusalExtensions

    The extensions payload of a write-refusal GraphQLError.

    type WriteRefusalExtensions = {
        code: WriteRefusalCode;
        entityName: string;
        messageIncludesValidationErrors?: true;
        validationErrors?: SerializedValidationError[];
    }
    Index

    Properties

    entityName: string
    messageIncludesValidationErrors?: true

    Present (and true) alongside validationErrors: a statement by THIS producer that the error's message is LatestResult.CompleteMessage, i.e. it already renders every entry of validationErrors. The client sets BaseEntityResult.MessageIncludesErrors from this — a fact the server asserts on the wire — rather than assuming what the server put in message. A server that does not send it gets the client's pre-existing behaviour (the text may repeat).

    validationErrors?: SerializedValidationError[]

    Present only when the refusal carried structured errors. Absent (not an empty array) otherwise, so a client can distinguish "validation said no" from "the database said no".