Skip to content

Instantly share code, notes, and snippets.

@nmchenry01
Created August 13, 2020 14:37
Show Gist options
  • Save nmchenry01/47a9b6eb7b50c944e36433c0a0a51847 to your computer and use it in GitHub Desktop.
Save nmchenry01/47a9b6eb7b50c944e36433c0a0a51847 to your computer and use it in GitHub Desktop.
The company type definition example for "Prisma vs. TypeORM"
/**
* Company create
*/
export type CompanyCreateArgs = {
/**
* Select specific fields to fetch from the Company
**/
select?: CompanySelect | null
/**
* Choose, which related nodes to fetch as well.
**/
include?: CompanyInclude | null
/**
* The data needed to create a Company.
**/
data: CompanyCreateInput
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment