Feature: Prisma schema column default values should be reflected in input types
Tenrys opened this issue · 5 comments
Tenrys commented
It's a small detail, but being able to see that certain fields can have default values from within a GraphQL IDE (like Apollo Explorer) would be a nice improvement, as per https://stackoverflow.com/a/51567429.
maoosi commented
Great suggestion! @all-contributors please add @Tenrys for ideas!
allcontributors commented
I've put up a pull request to add @Tenrys! 🎉
Tenrys commented
It seems like having an empty string as your default value breaks the schema, since default string values don't have quotes around them. In my fork I made it so default string values are surrounded by blockquotes ("""
) with the default value escaping the blockquote sequence of characters. (\"""
)