Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

codemods modifying the wrong types at the wrong place #18

Closed
teebot opened this issue Dec 9, 2020 · 1 comment
Closed

codemods modifying the wrong types at the wrong place #18

teebot opened this issue Dec 9, 2020 · 1 comment

Comments

@teebot
Copy link

teebot commented Dec 9, 2020

Describe the bug

Before the codemod

where: {
      Entity: { id: entityId },
      expiresAt: { gt: new Date() }
    },

After the codemod

where: {
      Prisma.Entity: { id: entityId },
      expiresAt: { gt: new Date() }
    },

which is invalid

Expected output

where: {
      Entity: { id: entityId },
      expiresAt: { gt: new Date() }
    },

Additional context

@williamluke4
Copy link
Contributor

Hey @teebot, I added a test for this case but I can't reproduce it. This is most likely because the cli can't find your schema (It should now throw, see #15) Could you try to specify your --schemaPath

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants