-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
phuong
committed
Dec 13, 2022
1 parent
21615e5
commit 147c99a
Showing
16 changed files
with
139 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
package moper | ||
|
||
func (d D) Match(pairs ...P) D { | ||
func (d *D) Match(pairs ...P) *D { | ||
return d.Equal("$match", toPair(pairs)) | ||
} | ||
|
||
func (d D) MatchD(pair D) D { | ||
func (d *D) MatchD(pair D) *D { | ||
return d.Equal("$match", pair) | ||
} | ||
|
||
func (d D) Group(pairs ...P) D { | ||
func (d *D) Group(pairs ...P) *D { | ||
return d.Equal("$group", toPair(pairs)) | ||
} | ||
|
||
func (d D) GroupD(pair D) D { | ||
func (d *D) GroupD(pair D) *D { | ||
return d.Equal("$group", pair) | ||
} | ||
|
||
func (d D) Sum(fieldName string) D { | ||
func (d *D) Sum(fieldName string) *D { | ||
return d.Equal("$sum", "$"+fieldName) | ||
} |
Oops, something went wrong.