I have just run install & start
added DB and JWT variables from .env
I am getting this error from file : src/app/book/dto/buy-book.input.ts
/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/@nestjs/graphql/dist/schema-builder/factories/input-type.factory.js:19 throw new cannot_determine_input_type_error_1.CannotDetermineInputTypeError(hostType, typeRef); ^ Error: Cannot determine a GraphQL input type ("ObjectId") for the "userId". Make sure your class is decorated with an appropriate decorator. at InputTypeFactory.create (/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/@nestjs/graphql/dist/schema-builder/factories/input-type.factory.js:19:23) at /home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/@nestjs/graphql/dist/schema-builder/factories/input-type-definition.factory.js:48:52 at Array.forEach (<anonymous>) at /home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/@nestjs/graphql/dist/schema-builder/factories/input-type-definition.factory.js:46:33 at resolveObjMapThunk (/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/graphql/type/definition.js:504:40) at defineInputFieldMap (/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/graphql/type/definition.js:1313:20) at GraphQLInputObjectType.getFields (/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/graphql/type/definition.js:1276:27) at collectReferencedTypes (/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/graphql/type/schema.js:395:51) at collectReferencedTypes (/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/graphql/type/schema.js:391:11) at new GraphQLSchema (/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/graphql/type/schema.js:183:7)
Do you know what i am missing here ?
I have just run install & start
added DB and JWT variables from .env
I am getting this error from file : src/app/book/dto/buy-book.input.ts
/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/@nestjs/graphql/dist/schema-builder/factories/input-type.factory.js:19 throw new cannot_determine_input_type_error_1.CannotDetermineInputTypeError(hostType, typeRef); ^ Error: Cannot determine a GraphQL input type ("ObjectId") for the "userId". Make sure your class is decorated with an appropriate decorator. at InputTypeFactory.create (/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/@nestjs/graphql/dist/schema-builder/factories/input-type.factory.js:19:23) at /home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/@nestjs/graphql/dist/schema-builder/factories/input-type-definition.factory.js:48:52 at Array.forEach (<anonymous>) at /home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/@nestjs/graphql/dist/schema-builder/factories/input-type-definition.factory.js:46:33 at resolveObjMapThunk (/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/graphql/type/definition.js:504:40) at defineInputFieldMap (/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/graphql/type/definition.js:1313:20) at GraphQLInputObjectType.getFields (/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/graphql/type/definition.js:1276:27) at collectReferencedTypes (/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/graphql/type/schema.js:395:51) at collectReferencedTypes (/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/graphql/type/schema.js:391:11) at new GraphQLSchema (/home/ajit-stephen/projects/personal/learning/graphql-mongodb-nestjs-tutorial/node_modules/graphql/type/schema.js:183:7)Do you know what i am missing here ?