diff --git a/docs/modeling/custom-proc.md b/docs/modeling/custom-proc.md index 5a5b2285..e1bca61a 100644 --- a/docs/modeling/custom-proc.md +++ b/docs/modeling/custom-proc.md @@ -9,6 +9,9 @@ import AvailableSince from '../_components/AvailableSince'; # Custom Procedure +> This amazing feature is implemented by [Mike Willbanks +](https://github.com/mwillbanks). + diff --git a/docs/orm/api/find.md b/docs/orm/api/find.md index 19e5c671..a7c44fc5 100644 --- a/docs/orm/api/find.md +++ b/docs/orm/api/find.md @@ -5,6 +5,7 @@ description: Find API import StackBlitzGithub from '@site/src/components/StackBlitzGithub'; import SelectIncludeOmit from './_select-include-omit.md'; +import AvailableSince from '../../_components/AvailableSince'; # Find @@ -30,6 +31,12 @@ The `find` series of APIs are used to query records from the database. It has th Similar to `findFirst`, but throws an error if no record is found. +- `exists` + + + + Check if any record exists that matches the query criteria. More performant than using `findFirst` or `count`. + ## Basic usage diff --git a/docs/orm/custom-proc.md b/docs/orm/custom-proc.md index 5325a8ec..803a545c 100644 --- a/docs/orm/custom-proc.md +++ b/docs/orm/custom-proc.md @@ -8,6 +8,9 @@ import AvailableSince from '../_components/AvailableSince'; # Custom Procedures +> This amazing feature is implemented by [Mike Willbanks +](https://github.com/mwillbanks). + diff --git a/docs/recipe/trpc.md b/docs/recipe/trpc.md new file mode 100644 index 00000000..9baf7742 --- /dev/null +++ b/docs/recipe/trpc.md @@ -0,0 +1,9 @@ +--- +sidebar_position: 5 +--- + +# Using ZenStack With tRPC + +In previous versions of ZenStack, [tRPC](https://trpc.io) integration was provided as a built-in package. For v3, it is now maintained by the community at [`zenstack-trpc`](https://github.com/olup/zenstack-trpc). This shift allows the core team to focus development resources on the essential components while the community contributes specialized integrations. Please check its GitHub repo for documentation. + +Special thanks to [Olup](https://github.com/olup) for building and maintaining this amazing implementation! diff --git a/docs/reference/cli.md b/docs/reference/cli.md index 094f677f..1729aabb 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -45,6 +45,7 @@ Options: --schema schema file (with extension .zmodel). Defaults to "zenstack/schema.zmodel" unless specified in package.json. -o, --output default output directory for code generation + -w, --watch watch for changes and re-generate automatically --lite also generate a lite version of schema without attributes --lite-only only generate lite version of schema without attributes --silent suppress all output except errors (default: false) diff --git a/docusaurus.config.js b/docusaurus.config.js index 973e5b5a..d2bc995e 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -221,7 +221,7 @@ const config = { copyright: `Copyright © ${new Date().getFullYear()} ZenStack, Inc.`, }, - image: '/img/social-cover-xmas.png', + image: '/img/social-cover.png', prism: { theme: prismThemes.github,