The data structure of a modifyDocument socket response.

Constructors

Properties

The database action that was performed.

broadcast: boolean

Was this response broadcast to other connected clients?

error: Error

An error that occurred. Present if unsuccessful

operation: DatabaseOperation

The database operation that was requested.

result: string[] | object[]

The result of the request. Present if successful

type: string

The type of Document being transacted.

userId: string

The identifier of the requesting user.