Created
December 10, 2021 04:59
-
-
Save manakuro/cc0eb17978e9eeb3acdc482a36f1bf45 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
func (r *queryResolver) Users(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int) (*ent.UserConnection, error) { | |
us, err := r.controller.User.List(ctx, after, first, before, last) | |
if err != nil { | |
return nil, err | |
} | |
return us, nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment