paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
684 stars 54 forks source link

Any plans to generate plain javascript files? #115

Closed ralvs closed 4 years ago

ralvs commented 4 years ago

I'm trying to migrate a big project from prisma 1 to prisma 2. Pal.js could help a lot, but I can't migrate the project to typescript right now. Its to much change

AhmedElywa commented 4 years ago

Yes current I working on JavaScript with two syntax es modules and normal Javascript

ralvs commented 4 years ago

Awesome! Thanks @AhmedElywa Should I leave this open?

AhmedElywa commented 4 years ago

Now we have support for JavaScript from v 1.3.2. You can use it by adding javascript property to the backend object in the pal.js file.

module.exports = {
  backend: {
    generator: 'nexus-schema',
    onDelete: true,
    javaScript: true, // like this
  },
}