Skip to content

Instantly share code, notes, and snippets.

@manakuro
Last active December 10, 2021 05:03
Show Gist options
  • Save manakuro/967c867b3214afb0f3c6e5eb398c03f9 to your computer and use it in GitHub Desktop.
Save manakuro/967c867b3214afb0f3c6e5eb398c03f9 to your computer and use it in GitHub Desktop.
type User interface {
...
List(ctx context.Context, after *model.Cursor, first *int, before *model.Cursor, last *int, where *model.UserWhereInput) (*model.UserConnection, error)
}
func (u *user) List(ctx context.Context, after *model.Cursor, first *int, before *model.Cursor, last *int, where *model.UserWhereInput) (*model.UserConnection, error) {
return u.userRepository.List(ctx, after, first, before, last, where)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment