Join Slack
Powered by
Anyone ever worked with custom scalar types in pri...
# orm-help
t
Tim Plummer
01/14/2019, 9:52 PM
Anyone ever worked with custom scalar types in prisma? I have the scalar defined but
prisma deploy
errors out because it doesn't see the scalar definition in the datamodel
d
divyendu
01/16/2019, 9:51 AM
Can you share an example of the datamodel? Maybe in the shape of a reproduction repository? 🙂
t
Tim Plummer
01/16/2019, 2:53 PM
Copy code
scalar IP type MyType { ip: IP! }
d
divyendu
01/17/2019, 7:55 AM
This is not possible with Prisma at the moment as Prisma does not know how to store/resolve this custom scalar. I suggest that you create a feature request here:
https://github.com/prisma/prisma/issues/new?template=feature_request.md
🙂
3
Views
Open in Slack
Previous
Next