Created
January 21, 2019 19:54
-
-
Save shanev/bd274491bafe33ddb145da04baa3411d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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