Recently, I've been experimenting with integrating type-graphql
into my nodejs project. While implementing @Query
methods went smoothly, I'm facing challenges with the following code snippet in combination with Moleculer service.
@Mutation()
// eslint-disable-next-line class-methods-use-this
removeValue((@Arg("value") value: number): void {
console.log(value);
}
The errors I encounter are:
/home/micro-api/node_modules/type-graphql/dist/helpers/findType.js:10
metadataDesignType = reflectedType[parameterIndex];
^
/home/micro-api/node_modules/type-graphql/dist/helpers/findType.js:1
TypeError: Cannot read property '0' of undefined
I've come across some comments referencing reflection in my research, but being new to node and typescript, I find myself at a loss. Any insight or suggestions would be greatly appreciated.