import { future, highlight } from '@mdx-deck/themes'
export const theme = { ...future, ...highlight }
@linstobias
- Freelance Consultant - React & NodeJS
- Building splitbee.io
- typeorm
- typegraphql
- graphql-code-generator
@Entity()
export class User {
@PrimaryGeneratedColumn()
id: number;
@Column()
firstName: string;
}
typeorm.io
@ObjectType()
export class User {
@Field()
id: number;
@Field()
firstName: string;
}
typegraphql.com
schema: http://localhost:3000/graphql
generates:
./src/types.d.ts:
plugins:
- typescript
graphql-code-generator.com
- Define type on server
- Typescript class as backend typing
- Generated type on client
- Type safe access