prisma / docs

📚 Prisma Documentation
https://www.prisma.io/docs
Apache License 2.0
980 stars 771 forks source link

ONGOING: Example schemas and queries #1927

Closed mhwelander closed 1 year ago

mhwelander commented 3 years ago

The Example schemas and queries is a directory of schemas that go beyond the basic User and Post models used for simple examples, and the kinds of queries the schema supports. Add your example and create a pull request! 🚀 For example, you might design a schema and queries for:

Where should I add my page?

Add your contributions under Guides > Samples as a separate page.

image

What format should I use?

Use the following basic template as a starting point:

Introduction here

## Scenario

This schema models followers/following - a many-to-many relationship.

## Schema

```prisma
Your schema here

Example queries

Example queries here - the more advanced and peculiar the better.

ruheni commented 1 year ago

This is out of the scope of the current docs.

However, if anyone would be interested in example schemas, we have this ongoing project by a community member: https://grab-and-go-prisma-schemas.vercel.app/