Skip to content

Commit

Permalink
Add page parameter to ConnectionArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
sgarner committed Jun 1, 2020
1 parent c82bdb4 commit 19d07db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/type/ConnectionArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import * as GQL from '@nestjs/graphql';

@GQL.ArgsType()
export class ConnectionArgs {
@GQL.Field(_type => GQL.Int, {
nullable: true,
description: 'Retrieve page of edges by fixed offset page number.',
})
public page?: number;

@GQL.Field(_type => String, {
nullable: true,
description: 'Retrieve page of edges before opaque cursor.',
Expand Down

0 comments on commit 19d07db

Please sign in to comment.