From e68df020a6b3df1b084f00767c314de27556ba32 Mon Sep 17 00:00:00 2001 From: Chase Adams Date: Tue, 9 Dec 2025 15:16:40 -0700 Subject: [PATCH] chore: docs --- README.md | 34 +--------------------------------- package.json | 2 +- 2 files changed, 2 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index b0b60b2..fd162bb 100644 --- a/README.md +++ b/README.md @@ -35,39 +35,7 @@ Add the schema generation script to your `package.json`: } ``` -### Use Zero schema file - -Use the generated Zero schema: - -```tsx -import {useEffect, useState} from 'react'; -import {useZero} from '@rocicorp/zero/react'; -import {syncedQuery} from '@rocicorp/zero'; -import {zql} from '../zero-schema.gen.ts'; - -const postsQuery = syncedQuery('allPosts', z.tuple([]), () => - zql.posts.related('author').limit(10), -); - -function PostList() { - const z = useZero(); - - const [posts] = useQuery(postsQuery()); - - return ( -
- {posts.map(post => ( -
- {/* Access the JSON content from Drizzle */} -

{post.content.textValue}

-

By: {post.author?.name}

-

Email: {post.author?.email}

-
- ))} -
- ); -} -``` +Please reference the Zero docs for how to use your new Zero schema: [https://zero.rocicorp.dev/docs/reading-data](https://zero.rocicorp.dev/docs/reading-data). ## Postgres Array Support diff --git a/package.json b/package.json index 75adea5..735d4bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prisma-zero", - "version": "0.1.0-canary.0", + "version": "0.1.0-canary.1", "description": "Generate Zero schemas from Prisma ORM schemas", "type": "module", "scripts": {