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/d8b72431a745758593d9e9633c745183 to your computer and use it in GitHub Desktop.
Save bloo/d8b72431a745758593d9e9633c745183 to your computer and use it in GitHub Desktop.
Resilient Tech Blog - Code-first GraphQL with Nexus - typegen-nexus import example.ts
import type { NexusGenAllTypes, NexusGenFieldTypes } from 'typegen-nexus'
type Nonprofit = NexusGenAllTypes['Nonprofit']
type GetAllNonprofit = NexusGenFieldTypes['Query']['getAllNonprofit']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment