Open ianjanicki opened 5 years ago
So prisma-admin
was designed with something different in mind. It was designed like not opinionated and you get only types
what are currently inside data model. Why is that? Because you can save, modify your queries and change everything you want. But a lot of people are not happy with that. So we are going to introduce automating adding and removing queries to reflect changes to the data model.
Great to hear. The fact that you have extended the functionality of the Data Browser is helpful. However you shouldn't take away things users relied on :)
Quick UI feedback: The collapsable query bar is not obvious at all. I think a more elegant approach would be to:
query <QueryName> { ... }
to show there is a collapsed queryWas this ever changed back? It still keeps the same queries after deploying. Would be nice to have both auto-generated queries and custom ones.
Previously, the data-viewer editor would auto-update the 'queries' in the left-hand panel. I've noticed two bugs regarding updating the data model and deploying to the demo servers:
Json
; and the query kept throwing an error due to it looking for the previous relationid
(since there is no sub-selection to aJson
). I fixed it, but it was a bit confusing, and wish, again, these things would be automatically updated.