Added email field to user.
This commit is contained in:
parent
dee7a13cba
commit
6ec1b77684
16 changed files with 410 additions and 139 deletions
|
|
@ -253,12 +253,12 @@ func (uq *UserQuery) Clone() *UserQuery {
|
|||
// Example:
|
||||
//
|
||||
// var v []struct {
|
||||
// Username string `json:"username,omitempty"`
|
||||
// Name string `json:"name,omitempty"`
|
||||
// Count int `json:"count,omitempty"`
|
||||
// }
|
||||
//
|
||||
// client.User.Query().
|
||||
// GroupBy(user.FieldUsername).
|
||||
// GroupBy(user.FieldName).
|
||||
// Aggregate(ent.Count()).
|
||||
// Scan(ctx, &v)
|
||||
//
|
||||
|
|
@ -280,11 +280,11 @@ func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy {
|
|||
// Example:
|
||||
//
|
||||
// var v []struct {
|
||||
// Username string `json:"username,omitempty"`
|
||||
// Name string `json:"name,omitempty"`
|
||||
// }
|
||||
//
|
||||
// client.User.Query().
|
||||
// Select(user.FieldUsername).
|
||||
// Select(user.FieldName).
|
||||
// Scan(ctx, &v)
|
||||
//
|
||||
func (uq *UserQuery) Select(fields ...string) *UserSelect {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue