nestjs-graphql-relay
TypeScript icon, indicating that this package has built-in type declarations

10.5.1 • Public • Published

nestjs-graphql-relay

Actions Status npm version

Nest.js + typeorm + graphql-relay inspired nestjs-graphql-relay

Install

npm install nestjs-graphql-relay

Usage

example resolver

@ObjectType({ isAbstract: true })
abstract class RecipesEdge implements Relay.Edge<Recipe> {
  @Field(() => Recipe)
  readonly node: Recipe;

  @Field()
  readonly cursor: Relay.ConnectionCursor;
}

@ObjectType()
export class RecipesConnection implements Relay.Connection<Recipe> {
  @Field()
  readonly pageInfo: PageInfo;

  @Field(() => [RecipesEdge])
  readonly edges: Array<Relay.Edge<Recipe>>;
}

Contributing

PRs accepted.

License

MIT © g59

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
10.5.1140latest

Version History

VersionDownloads (Last 7 Days)Published
10.5.1140
10.5.0564
10.4.0120
10.3.01
10.2.01
10.1.066
10.0.0158
9.0.083
8.2.3368
8.2.21
8.2.11
8.2.01
8.1.01
8.0.01
1.2.01
1.1.00
1.0.20
1.0.10
1.0.00
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i nestjs-graphql-relay

Weekly Downloads

1,507

Version

10.5.1

License

MIT

Unpacked Size

26.1 kB

Total Files

21

Last publish

Collaborators

  • 9renpoto
  • yasai-t
  • abyssparanoia