Closed omar-dulaimi closed 3 years ago
Yes, you face this issue with the last version of prisma because they added the Decimal type. I must convert it to Float to work with Graphql
I saw in the past PRS this one https://github.com/paljs/prisma-tools/pull/176 Isn't it supposed to fix this issue?
I'm not sure really about conversion from Decimal to Float, wouldn't that introduce data loss/other issues?
I'm not sure really about conversion from Decimal to Float, wouldn't that introduce data loss/other issues?
No, it just changes the type name.
nexus
generator not SDL generatorFor SDL first generator, you need to add Decimal
scalar manually in your resolvers
Aha okay. Is there anything I can do to speed this ticket resolution?
@AhmedElywa Hello again. Could you please elaborate on how to manually do this?
For SDL first generator, you need to add
Decimal
scalar manually in your resolvers
I'm blocked at this issue since yesterday, and I couldn't find mentions of "Decimal" besides in typeDefs and resolversTypes files. We really need to get going with Pal.js
@AhmedElywa Also, how can I change the names of some fields; like "take" I want to change it to "first"
for adding a custom scalar, look to this example https://www.graphql-tools.com/docs/scalars/#custom-scalar-examples
Hello, I'm recieving a lot of errors in the terminal saying:
and also: