Skip to content

Instantly share code, notes, and snippets.

@manakuro
Created December 10, 2021 05:05
Show Gist options
  • Save manakuro/6c56ba8de7f010d305812fb8ee0261ed to your computer and use it in GitHub Desktop.
Save manakuro/6c56ba8de7f010d305812fb8ee0261ed 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, where *ent.UserWhereInput) (*ent.UserConnection, error) {
us, err := r.controller.User.List(ctx, after, first, before, last, where)
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