10.5.1 • Published 4 months ago
nestjs-graphql-relay v10.5.1
nestjs-graphql-relay
Nest.js + typeorm + graphql-relay inspired nestjs-graphql-relay
Install
npm install nestjs-graphql-relay
Usage
@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
10.5.1
4 months ago
10.5.0
8 months ago
10.4.0
10 months ago
10.2.0
1 year ago
10.3.0
1 year ago
10.1.0
1 year ago
10.0.0
1 year ago
9.0.0
2 years ago
8.2.3
3 years ago
8.2.2
3 years ago
8.2.1
3 years ago
8.2.0
3 years ago
8.1.0
3 years ago
8.0.0
3 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago