Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
goldcaddy77 committed Apr 26, 2021
1 parent d42d847 commit 3b32b4e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/02-complex-example/generated/binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export interface UserCreateInput {
jsonField?: JSONObject | null
jsonFieldNoFilter?: JSONObject | null
typedJsonField?: EventObjectInput | null
stringField: String
stringField?: String | null
noFilterField?: String | null
noSortField?: String | null
noFilterOrSortField?: String | null
Expand Down Expand Up @@ -527,7 +527,7 @@ export interface User extends BaseGraphQLObject {
jsonField?: JSONObject | null
jsonFieldNoFilter?: JSONObject | null
typedJsonField?: EventObject | null
stringField: String
stringField?: String | null
noFilterField?: String | null
noSortField?: String | null
noFilterOrSortField?: String | null
Expand Down
4 changes: 2 additions & 2 deletions examples/02-complex-example/generated/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,8 @@ export class UserCreateInput {
@TypeGraphQLField(() => EventObject, { nullable: true })
typedJsonField?: EventObject;

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

@TypeGraphQLField({ nullable: true })
noFilterField?: string;
Expand Down
4 changes: 2 additions & 2 deletions examples/02-complex-example/generated/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ type User implements BaseGraphQLObject {
typedJsonField: EventObject

"""This is a string field"""
stringField: String!
stringField: String
noFilterField: String
noSortField: String
noFilterOrSortField: String
Expand Down Expand Up @@ -193,7 +193,7 @@ input UserCreateInput {
jsonField: JSONObject
jsonFieldNoFilter: JSONObject
typedJsonField: EventObjectInput
stringField: String!
stringField: String
noFilterField: String
noSortField: String
noFilterOrSortField: String
Expand Down
2 changes: 1 addition & 1 deletion examples/02-complex-example/src/modules/user/user.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class User extends BaseModel {
@StringField({
maxLength: 50,
minLength: 2,
nullable: false,
nullable: true,
description: 'This is a string field'
})
stringField: string;
Expand Down

0 comments on commit 3b32b4e

Please sign in to comment.