- Operations in main.wasp (tried both with and without entities declarations): query listVendors { fn: import { listVendors } from "@src/server/vendors.ts" }
- Using modern imports in server code: import { prisma } from 'wasp/server'; import type { Vendor } from '@prisma/client';
Questions: 1. How should new entities be properly defined in Wasp 0.16? 2. Why does migration revert schema changes from an existing VendorWedding migration? 3. How to resolve the taggedEntities.ts import error? 4. Is there a proper way to transition from many-to-many (VendorWedding) to one-to-many (Vendor) relationships?
The generated .wasp/out/db/schema.prisma shows Vendor correctly, but compilation fails on generated files.