benawad / type-graphql-series

Typescript GraphQL Server built with TypeGraphQL
326 stars 129 forks source link

Decorators/array #5

Open paean99 opened 5 years ago

paean99 commented 5 years ago

Here is the implementation of an array of decorators.

The next goal should be to dynamically create the various methods of the class and add their respective dynamic array of decorators. Those methods should be coming from an optional list/interface containing CRUD methods and others predefined alternatives.

I will try my hand at it if i have time or if you do it, i would like to know how it was :)

For a dynamic Prisma/hasura like feature, but simpler to add to any graphql projects?

Edit: disregard the earlier closing of the PR. It is late here :(