Skip to content

Instantly share code, notes, and snippets.

@shanev
Created January 21, 2019 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanev/bd274491bafe33ddb145da04baa3411d to your computer and use it in GitHub Desktop.
Save shanev/bd274491bafe33ddb145da04baa3411d to your computer and use it in GitHub Desktop.
// Mutations write to the database
type Mutations interface {
GenericMutations
UpsertProfile(profile *Profile) error
}
// Queries read from the database
type Queries interface {
GenericQueries
ProfileByUsername(username string) (Profile, error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment