Skip to content

Instantly share code, notes, and snippets.

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