Skip to content

Instantly share code, notes, and snippets.

@karthikraobr
Last active January 2, 2019 16:08
Show Gist options
  • Save karthikraobr/59ad835eabb23ae86e8c88b4d364395f to your computer and use it in GitHub Desktop.
Save karthikraobr/59ad835eabb23ae86e8c88b4d364395f to your computer and use it in GitHub Desktop.
message Account {
google.protobuf.Timestamp created_at = 1;
int64 created_by = 3;
string currency = 21;
string contact_phone = 20;
}
schema:
- "*.graphqls"
exec:
filename: schema.gqlgen.go
model:
filename: models.gqlgen.go
resolver:
filename: resolver.go
type: Resolver
models:
Account:
model: github.com/travelaudience/testserv/testservrpc.Account
type Account {
#Extra field
name: String!
contactPhone: String
createdBy: Int!
currency: String!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment