Skip to content
Permalink
Browse files

fix(examples): clean up generated code (#289)

  • Loading branch information
goldcaddy77 committed Jan 20, 2020
1 parent 493c1b2 commit 2b82512a4aa6619a583cf96e6b00e3b0d5ba653a
@@ -5,13 +5,7 @@
"[html]": {
"editor.formatOnSave": false
},
"eslint.validate": [
"javascript",
{
"language": "typescript",
"autoFix": true
}
],
"eslint.validate": ["javascript", "typescript"],
"search.exclude": {
"dist/": true,
"node_modules/": true
@@ -145,11 +145,11 @@ export interface UserWhereInput {
email_startsWith?: String | null
email_endsWith?: String | null
email_in?: String[] | String | null
age_eq?: Float | null
age_gt?: Float | null
age_gte?: Float | null
age_lt?: Float | null
age_lte?: Float | null
age_eq?: Int | null
age_gt?: Int | null
age_gte?: Int | null
age_lt?: Int | null
age_lte?: Int | null
age_in?: Int[] | Int | null
isRequired_eq?: Boolean | null
isRequired_in?: Boolean[] | Boolean | null
@@ -1,18 +1,22 @@
// This file has been auto-generated by Warthog. Do not update directly as it
// will be re-written. If you need to change this file, update models or add
// new TypeGraphQL objects
// @ts-ignore
import { GraphQLDateTime as DateTime } from "graphql-iso-date";
import { GraphQLID as ID } from "graphql";

// @ts-ignore
import {
ArgsType,
Field as TypeGraphQLField,
Float,
InputType as TypeGraphQLInputType,
Int
} from "type-graphql";
// @ts-ignore
import { registerEnumType } from "type-graphql";

// eslint-disable-next-line @typescript-eslint/no-var-requires
// @ts-ignore eslint-disable-next-line @typescript-eslint/no-var-requires
const { GraphQLJSONObject } = require("graphql-type-json");

// @ts-ignore
@@ -167,19 +171,19 @@ export class UserWhereInput {
@TypeGraphQLField(() => [String], { nullable: true })
email_in?: string[];

@TypeGraphQLField({ nullable: true })
@TypeGraphQLField(() => Int, { nullable: true })
age_eq?: number;

@TypeGraphQLField({ nullable: true })
@TypeGraphQLField(() => Int, { nullable: true })
age_gt?: number;

@TypeGraphQLField({ nullable: true })
@TypeGraphQLField(() => Int, { nullable: true })
age_gte?: number;

@TypeGraphQLField({ nullable: true })
@TypeGraphQLField(() => Int, { nullable: true })
age_lt?: number;

@TypeGraphQLField({ nullable: true })
@TypeGraphQLField(() => Int, { nullable: true })
age_lte?: number;

@TypeGraphQLField(() => [Int], { nullable: true })
@@ -197,19 +201,19 @@ export class UserWhereInput {
@TypeGraphQLField(() => [StringEnum], { nullable: true })
stringEnumField_in?: StringEnum[];

@TypeGraphQLField({ nullable: true })
@TypeGraphQLField(() => Float, { nullable: true })
rating_eq?: number;

@TypeGraphQLField({ nullable: true })
@TypeGraphQLField(() => Float, { nullable: true })
rating_gt?: number;

@TypeGraphQLField({ nullable: true })
@TypeGraphQLField(() => Float, { nullable: true })
rating_gte?: number;

@TypeGraphQLField({ nullable: true })
@TypeGraphQLField(() => Float, { nullable: true })
rating_lt?: number;

@TypeGraphQLField({ nullable: true })
@TypeGraphQLField(() => Float, { nullable: true })
rating_lte?: number;

@TypeGraphQLField(() => [Float], { nullable: true })
@@ -182,11 +182,11 @@ input UserWhereInput {
email_startsWith: String
email_endsWith: String
email_in: [String!]
age_eq: Float
age_gt: Float
age_gte: Float
age_lt: Float
age_lte: Float
age_eq: Int
age_gt: Int
age_gte: Int
age_lt: Int
age_lte: Int
age_in: [Int!]
isRequired_eq: Boolean
isRequired_in: [Boolean!]
@@ -364,6 +364,8 @@ export interface UserWhereInput {
export interface UserWhereUniqueInput {
id?: String | null
emailField?: String | null
enumField?: StringEnum | null
stringField?: String | null
}

export interface BaseGraphQLObject {
@@ -1,18 +1,22 @@
// This file has been auto-generated by Warthog. Do not update directly as it
// will be re-written. If you need to change this file, update models or add
// new TypeGraphQL objects
// @ts-ignore
import { GraphQLDateTime as DateTime } from "graphql-iso-date";
import { GraphQLID as ID } from "graphql";

// @ts-ignore
import {
ArgsType,
Field as TypeGraphQLField,
Float,
InputType as TypeGraphQLInputType,
Int
} from "type-graphql";
// @ts-ignore
import { registerEnumType } from "type-graphql";

// eslint-disable-next-line @typescript-eslint/no-var-requires
// @ts-ignore eslint-disable-next-line @typescript-eslint/no-var-requires
const { GraphQLJSONObject } = require("graphql-type-json");

// @ts-ignore
@@ -613,6 +617,12 @@ export class UserWhereUniqueInput {

@TypeGraphQLField(() => String, { nullable: true })
emailField?: string;

@TypeGraphQLField(() => StringEnum, { nullable: true })
enumField?: StringEnum;

@TypeGraphQLField(() => String, { nullable: true })
stringField?: string;
}

@TypeGraphQLInputType()
@@ -430,4 +430,6 @@ input UserWhereInput {
input UserWhereUniqueInput {
id: String
emailField: String
enumField: StringEnum
stringField: String
}
@@ -91,12 +91,12 @@ export interface BaseWhereInput {

export interface PostCreateInput {
title: String
userId: String
userId: ID_Output
}

export interface PostUpdateInput {
title?: String | null
userId?: String | null
userId?: ID_Input | null
}

export interface PostWhereInput {
@@ -1,18 +1,22 @@
// This file has been auto-generated by Warthog. Do not update directly as it
// will be re-written. If you need to change this file, update models or add
// new TypeGraphQL objects
// @ts-ignore
import { GraphQLDateTime as DateTime } from "graphql-iso-date";
import { GraphQLID as ID } from "graphql";

// @ts-ignore
import {
ArgsType,
Field as TypeGraphQLField,
Float,
InputType as TypeGraphQLInputType,
Int
} from "type-graphql";
// @ts-ignore
import { registerEnumType } from "type-graphql";

// eslint-disable-next-line @typescript-eslint/no-var-requires
// @ts-ignore eslint-disable-next-line @typescript-eslint/no-var-requires
const { GraphQLJSONObject } = require("graphql-type-json");

// @ts-ignore
@@ -279,7 +283,7 @@ export class PostCreateInput {
@TypeGraphQLField()
title!: string;

@TypeGraphQLField(() => String)
@TypeGraphQLField(() => ID)
userId!: string;
}

@@ -288,7 +292,7 @@ export class PostUpdateInput {
@TypeGraphQLField({ nullable: true })
title?: string;

@TypeGraphQLField(() => String, { nullable: true })
@TypeGraphQLField(() => ID, { nullable: true })
userId?: string;
}

@@ -89,7 +89,7 @@ type Post implements BaseGraphQLObject {

input PostCreateInput {
title: String!
userId: String!
userId: ID!
}

enum PostOrderByInput {
@@ -107,7 +107,7 @@ enum PostOrderByInput {

input PostUpdateInput {
title: String
userId: String
userId: ID
}

input PostWhereInput {
@@ -237,14 +237,14 @@ export interface UserCreateInput {
}

export interface UserRoleCreateInput {
userId: String
roleId: String
userId: ID_Output
roleId: ID_Output
otherMetadata?: String | null
}

export interface UserRoleUpdateInput {
userId?: String | null
roleId?: String | null
userId?: ID_Input | null
roleId?: ID_Input | null
otherMetadata?: String | null
}

@@ -1,18 +1,22 @@
// This file has been auto-generated by Warthog. Do not update directly as it
// will be re-written. If you need to change this file, update models or add
// new TypeGraphQL objects
// @ts-ignore
import { GraphQLDateTime as DateTime } from "graphql-iso-date";
import { GraphQLID as ID } from "graphql";

// @ts-ignore
import {
ArgsType,
Field as TypeGraphQLField,
Float,
InputType as TypeGraphQLInputType,
Int
} from "type-graphql";
// @ts-ignore
import { registerEnumType } from "type-graphql";

// eslint-disable-next-line @typescript-eslint/no-var-requires
// @ts-ignore eslint-disable-next-line @typescript-eslint/no-var-requires
const { GraphQLJSONObject } = require("graphql-type-json");

// @ts-ignore
@@ -291,10 +295,10 @@ export class UserRoleWhereUniqueInput {

@TypeGraphQLInputType()
export class UserRoleCreateInput {
@TypeGraphQLField(() => String)
@TypeGraphQLField(() => ID)
userId!: string;

@TypeGraphQLField(() => String)
@TypeGraphQLField(() => ID)
roleId!: string;

@TypeGraphQLField({ nullable: true })
@@ -303,10 +307,10 @@ export class UserRoleCreateInput {

@TypeGraphQLInputType()
export class UserRoleUpdateInput {
@TypeGraphQLField(() => String, { nullable: true })
@TypeGraphQLField(() => ID, { nullable: true })
userId?: string;

@TypeGraphQLField(() => String, { nullable: true })
@TypeGraphQLField(() => ID, { nullable: true })
roleId?: string;

@TypeGraphQLField({ nullable: true })
@@ -314,8 +314,8 @@ type UserRole implements BaseGraphQLObject {
}

input UserRoleCreateInput {
userId: String!
roleId: String!
userId: ID!
roleId: ID!
otherMetadata: String
}

@@ -335,8 +335,8 @@ enum UserRoleOrderByInput {
}

input UserRoleUpdateInput {
userId: String
roleId: String
userId: ID
roleId: ID
otherMetadata: String
}

@@ -1,18 +1,22 @@
// This file has been auto-generated by Warthog. Do not update directly as it
// will be re-written. If you need to change this file, update models or add
// new TypeGraphQL objects
// @ts-ignore
import { GraphQLDateTime as DateTime } from "graphql-iso-date";
import { GraphQLID as ID } from "graphql";

// @ts-ignore
import {
ArgsType,
Field as TypeGraphQLField,
Float,
InputType as TypeGraphQLInputType,
Int
} from "type-graphql";
// @ts-ignore
import { registerEnumType } from "type-graphql";

// eslint-disable-next-line @typescript-eslint/no-var-requires
// @ts-ignore eslint-disable-next-line @typescript-eslint/no-var-requires
const { GraphQLJSONObject } = require("graphql-type-json");

// @ts-ignore
@@ -1,18 +1,22 @@
// This file has been auto-generated by Warthog. Do not update directly as it
// will be re-written. If you need to change this file, update models or add
// new TypeGraphQL objects
// @ts-ignore
import { GraphQLDateTime as DateTime } from "graphql-iso-date";
import { GraphQLID as ID } from "graphql";

// @ts-ignore
import {
ArgsType,
Field as TypeGraphQLField,
Float,
InputType as TypeGraphQLInputType,
Int
} from "type-graphql";
// @ts-ignore
import { registerEnumType } from "type-graphql";

// eslint-disable-next-line @typescript-eslint/no-var-requires
// @ts-ignore eslint-disable-next-line @typescript-eslint/no-var-requires
const { GraphQLJSONObject } = require("graphql-type-json");

// @ts-ignore

0 comments on commit 2b82512

Please sign in to comment.
You can’t perform that action at this time.