I want to use registerEnumType() to generate a GraphQL type from an enum (see the docs), however, I am not sure where to place it and how to use it?
I want to be able to re-use the GraphQL type, therefore I want to define it in a separate file and export it. Is it possible? 🤔
Documentation | NestJS - A progressive Node.js framework
Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).