Skip to content

Commit

Permalink
Add null type to ConnectionArgs fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sgarner committed Sep 3, 2021
1 parent 2354bd7 commit ff1ef06
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/type/ConnectionArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class ConnectionArgs {
nullable: true,
description: 'Retrieve page of edges by fixed offset page number.',
})
public page?: number;
public page?: number | null;

@Validate.IsString()
@Validate.MinLength(1)
Expand All @@ -19,7 +19,7 @@ export class ConnectionArgs {
nullable: true,
description: 'Retrieve page of edges before opaque cursor.',
})
public before?: string;
public before?: string | null;

@Validate.IsString()
@Validate.MinLength(1)
Expand All @@ -28,7 +28,7 @@ export class ConnectionArgs {
nullable: true,
description: 'Retrieve page of edges after opaque cursor.',
})
public after?: string;
public after?: string | null;

@Validate.IsInt()
@Validate.Min(1)
Expand All @@ -37,7 +37,7 @@ export class ConnectionArgs {
nullable: true,
description: 'Retrieve first `n` edges.',
})
public first?: number;
public first?: number | null;

@Validate.IsInt()
@Validate.Min(1)
Expand All @@ -46,5 +46,5 @@ export class ConnectionArgs {
nullable: true,
description: 'Retrieve last `n` edges.',
})
public last?: number;
public last?: number | null;
}

0 comments on commit ff1ef06

Please sign in to comment.