Skip to content

LinbuduLab/midwayjs-dataloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cb2ba8c Β· Jun 13, 2021

History

17 Commits
Jun 13, 2021
Jun 13, 2021
Apr 22, 2021
Apr 22, 2021
Apr 22, 2021
Apr 22, 2021
Apr 22, 2021
Jun 13, 2021
Apr 22, 2021
Jun 13, 2021
Apr 22, 2021
Jun 13, 2021
Jun 13, 2021
Jun 13, 2021
Apr 25, 2021

Repository files navigation

MidwayJS & DataLoader

Guidance on DataLoader integration with MidwayJS.

Note: All examples are created upon TypeGraphQL, for information about TypeGraphQL + MidwayJS, see midway-examples: graphql.

Note: If you're also using Prisma2 in your application, no extra DataLoader setup is needed because since Prisma2, a built-in DataLoader implemention was included.

Implementions

  • Register DataLoader instances with Batch Loader Functions by TypeGraphQL middleware, manually.

  • Register DataLoader instances with Service(like TypeORM findByIds) by TypeGraphQL middleware, manually.

  • Register DataLoader instances with TypeORM Relation Metadata by TypeGraphQL middleware, automatically.

  • Register DataLoader instances with TypeORM Relation Metadata by TypeGraphQL middleware, automatically. (type-graphql-dataloader under the hood.)

About

MidwayJS + GraphQL + TypeGraphQL + DataLoader. πŸ’•

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published