Skip to content

Instantly share code, notes, and snippets.

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 bloo/cd7a418b0a7938dc6bd93799d25ffd7e to your computer and use it in GitHub Desktop.
Save bloo/cd7a418b0a7938dc6bd93799d25ffd7e to your computer and use it in GitHub Desktop.
Resilient Tech Blog - Code-first GraphQL with Nexus - budget objectType.ts
export const budget = objectType({
name: BUDGET,
definition(t) {
t.model.id()
t.model.name()
t.model.amount()
t.model.fiscalYearStart()
t.model.fiscalYearEnd()
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment