@ -38,6 +38,7 @@ func (l *StreamLoader) DecodeNext() error {
return nil
}
// Decode function decodes the current cursor document into the target
func (l *StreamLoader) Decode() error {
base.Reset(l.target)
@ -50,6 +50,7 @@ type JSONBased interface {
SetID(id primitive.D)
// InterfaceBased is an interface for documents that have custom declated type for the _id field
type InterfaceBased interface {
GetID() interface{}
SetID(id interface{})