🚀 Socket Launch Week 🚀 Day 1: Introducing .NET Support in Socket.Learn More

nestjs-graphql-relay

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestjs-graphql-relay

@nestjs/graphql + graphql-relay + typeorm

10.6.0
latest
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created

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

FAQs

Package last updated on 03 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts