mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2026-12-02 10:36:42 -06:00
Run check-updates and keep majors that are incompatible with type-graphql 2.0.0-rc.3 or the current tooling (typescript 6, graphql 16, graphql-scalars 1, Babel 7). Declare previously transitive imports (terser-webpack-plugin, globals, typescript-eslint, @eslint/js) as devDependencies so build and lint work again. Fix lint errors and update the versions listed in the README.
17 lines
239 B
TypeScript
17 lines
239 B
TypeScript
|
|
'use strict';
|
|
|
|
import { Field, ObjectType } from 'type-graphql';
|
|
|
|
@ObjectType()
|
|
export class Test {
|
|
@Field(() => String)
|
|
text?: string;
|
|
}
|
|
|
|
@ObjectType()
|
|
export class TestMutation {
|
|
@Field(() => String)
|
|
text?: string;
|
|
}
|