-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
type Op struct {
Id interface{} `json:"_id"`
Operation string `json:"operation"`
Namespace string `json:"namespace"`
Data map[string]interface{} `json:"data,omitempty"`
Timestamp primitive.Timestamp `json:"timestamp"`
Source QuerySource `json:"source"`
Doc interface{} `json:"doc,omitempty"`
UpdateDescription map[string]interface{} `json:"updateDescription,omitempty"`
ResumeToken OpResumeToken `json:"-"`
}I want to get latest document that have been change. for example, in "lessons" mongo collections, I update "$unset" the "room_id" filed of "lessons" collections , I need the doc data without "room_id" field.
I shouled select Op.Data and Op.Doc ? Op.Doc is value of Op.Data field "Doc" ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels