Created
December 10, 2021 04:59
-
-
Save manakuro/651eaa749c76603c9bde88a018b022a6 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 *userRepository) List(ctx context.Context, after *model.Cursor, first *int, before *model.Cursor, last *int) (*model.UserConnection, error) { | |
us, err := r.client.User.Query().Paginate(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