Skip to content

Instantly share code, notes, and snippets.

@manakuro
Created December 10, 2021 04:59
Show Gist options
  • Save manakuro/cc0eb17978e9eeb3acdc482a36f1bf45 to your computer and use it in GitHub Desktop.
Save manakuro/cc0eb17978e9eeb3acdc482a36f1bf45 to your computer and use it in GitHub Desktop.
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