Skip to content

Commit

Permalink
fix(text-field): fixes TextField decorator (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldcaddy77 authored May 30, 2021
1 parent 14bd961 commit d54fc78
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 32 deletions.
7 changes: 0 additions & 7 deletions examples/02-complex-example/generated/binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ export type UserOrderByInput = 'booleanField_ASC' |
'characterField_DESC' |
'characterVaryingField_ASC' |
'characterVaryingField_DESC' |
'textField_ASC' |
'textField_DESC' |
'varcharField_ASC' |
'varcharField_DESC' |
'intField_ASC' |
Expand Down Expand Up @@ -313,11 +311,6 @@ export interface UserWhereInput {
characterVaryingField_startsWith?: String | null
characterVaryingField_endsWith?: String | null
characterVaryingField_in?: String[] | String | null
textField_eq?: String | null
textField_contains?: String | null
textField_startsWith?: String | null
textField_endsWith?: String | null
textField_in?: String[] | String | null
varcharField_eq?: String | null
varcharField_contains?: String | null
varcharField_startsWith?: String | null
Expand Down
18 changes: 0 additions & 18 deletions examples/02-complex-example/generated/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ export enum UserOrderByEnum {
characterVaryingField_ASC = "characterVaryingField_ASC",
characterVaryingField_DESC = "characterVaryingField_DESC",

textField_ASC = "textField_ASC",
textField_DESC = "textField_DESC",

varcharField_ASC = "varcharField_ASC",
varcharField_DESC = "varcharField_DESC",

Expand Down Expand Up @@ -450,21 +447,6 @@ export class UserWhereInput {
@TypeGraphQLField(() => [String], { nullable: true })
characterVaryingField_in?: string[];

@TypeGraphQLField({ nullable: true })
textField_eq?: string;

@TypeGraphQLField({ nullable: true })
textField_contains?: string;

@TypeGraphQLField({ nullable: true })
textField_startsWith?: string;

@TypeGraphQLField({ nullable: true })
textField_endsWith?: string;

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

@TypeGraphQLField({ nullable: true })
varcharField_eq?: string;

Expand Down
7 changes: 0 additions & 7 deletions examples/02-complex-example/generated/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ enum UserOrderByInput {
characterField_DESC
characterVaryingField_ASC
characterVaryingField_DESC
textField_ASC
textField_DESC
varcharField_ASC
varcharField_DESC
intField_ASC
Expand Down Expand Up @@ -370,11 +368,6 @@ input UserWhereInput {
characterVaryingField_startsWith: String
characterVaryingField_endsWith: String
characterVaryingField_in: [String!]
textField_eq: String
textField_contains: String
textField_startsWith: String
textField_endsWith: String
textField_in: [String!]
varcharField_eq: String
varcharField_contains: String
varcharField_startsWith: String
Expand Down
1 change: 1 addition & 0 deletions src/decorators/TextField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ interface TextFieldOptions {
export function TextField(options: TextFieldOptions = {}): any {
const factories = getCombinedDecorator({
fieldType: 'text',
dbType: 'text',
gqlFieldType: String,
warthogColumnMeta: options
});
Expand Down

0 comments on commit d54fc78

Please sign in to comment.