Tag: typegoose
-
Mongoose not able to create a schema
0 Everything loaded fine before I had added a new schema. This is the resolver: import { Arg, Mutation, Query, Resolver } from "type-graphql"; import { Order } from "./order.schema"; import OrderService from "./order.service"; @Resolver() export default class OrderResolver { constructor(private orderService: OrderService) { this.orderService = new OrderService(); } @Mutation(() => Order) createOrder(@Arg("input") input: any)…