blitzjs.com icon indicating copy to clipboard operation
blitzjs.com copied to clipboard

Document Prisma's browser-index

Open jrhicks opened this issue 4 years ago • 2 comments

Per suggestion from flybayer

jrhicks avatar Oct 21 '21 18:10 jrhicks

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/blitzjs/blitzjs-com/Ch6mzJJ6ByWBd14cyS88Ty92jKXk
✅ Preview: Failed

vercel[bot] avatar Oct 21 '21 18:10 vercel[bot]

Hey thanks. Clarification, you don't have to import from .prisma/client/index-browser. You can import {Prisma} from 'db' like normal and then access Prisma.ModelName to see the models.

As is, I'm not sure your PR adds that much. What I had in mind was more like an example of using this prisma data to automatically render a list of models or form or something like you originally asked about.

I totally recognize that would take more effort on your part, so there's no pressure to do that. We can just close this and move on unless you want to do that.

flybayer avatar Oct 21 '21 20:10 flybayer