Hmmmmmmmmm it’s possible that an update to Prisma may have changed how they introspect the schema file and report what it contains. We use the output of that introspection to figure out what fields to generate in the scaffold.
That error is in the code that’s generated for the test file for a service. It tests making an update to a field and then checking that the update actually occurred in the database. What should have been a string from the prisma introspection is now an object instead, and that’s what’s being output in the generated file.
@undertow could you let us know which version of Redwood your using? Also, to double-check, I’d like to confirm which version of Prisma you’re using — if you ever manually installed Prisma in your project, things might be out of sync.
Please copy + paste the output from the following two commands:
Edit: By the way, the generators were working fine before I upgraded from v25 to v27, so it’s possible that I messed up somewhere along the way while upgrading