<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/stories-behind-zenstack-v2--xf8juwxw0" -->

---
title: Stories Behind ZenStack V2! | daily.dev
description: ZenStack V2 introduces polymorphic relations, edge support, `Auth()` in `Default()` attribute, and VSCode auto-formatting. The implementation of polymorphic...
canonical: https://daily.dev/posts/stories-behind-zenstack-v2--xf8juwxw0
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Stories Behind ZenStack V2! | daily.dev
og:description: ZenStack V2 introduces polymorphic relations, edge support, `Auth()` in `Default()` attribute, and VSCode auto-formatting. The implementation of polymorphic...
og:url: https://daily.dev/posts/stories-behind-zenstack-v2--xf8juwxw0
og:image: https://api.daily.dev/og/posts/xf8JuWXW0.png
og:image:alt: Stories Behind ZenStack V2!
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Stories Behind ZenStack V2!

**[DEV](https://daily.dev/sources/devto)** · [@jiasheng](https://daily.dev/jiasheng) · 4 min read · 14 upvotes · 0 comments

## Summary

ZenStack V2 introduces polymorphic relations, edge support, `Auth()` in `Default()` attribute, and VSCode auto-formatting. The implementation of polymorphic relations was driven by user feedback and received positive reactions. ZenStack now supports running on the Edge runtime. The `Auth()` feature in `Default()` allows for automatically assigning ownerId. VSCode auto-formatting has been improved to match Prisma's style.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/jiasheng/stories-behind-zenstack-v2-57p8>

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#prisma](https://daily.dev/tags/prisma)

[View this post on daily.dev](https://daily.dev/posts/stories-behind-zenstack-v2--xf8juwxw0)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Stories Behind ZenStack V2!","url":"https://daily.dev/posts/stories-behind-zenstack-v2--xf8juwxw0","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/stories-behind-zenstack-v2--xf8juwxw0"},"datePublished":"2024-04-29T10:02:51.983Z","dateModified":"2024-05-09T08:20:02.615Z","description":"ZenStack V2 introduces polymorphic relations, edge support, `Auth()` in `Default()` attribute, and VSCode auto-formatting. The implementation of polymorphic...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c78cbd93ba1198bf8f5ced5356eb0cf6?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c78cbd93ba1198bf8f5ced5356eb0cf6?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"DEV","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"JS","url":"https://daily.dev/jiasheng","image":"https://avatars.githubusercontent.com/u/16688722?v=4","description":"Building tools to enable more people to pursue work they truly enjoy.","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":140}},"commentCount":0,"discussionUrl":"https://daily.dev/posts/stories-behind-zenstack-v2--xf8juwxw0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":14},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,prisma","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DEV","item":"https://daily.dev/sources/devto"},{"@type":"ListItem","position":3,"name":"Stories Behind ZenStack V2!"}]}
```

