pothos icon indicating copy to clipboard operation
pothos copied to clipboard

Make brandWithType return the branded object

Open XiNiHa opened this issue 3 years ago • 2 comments

This lets users to do something like return brandWithType(await prisma.user.findUnique({ ... }), User)

XiNiHa avatar Nov 13 '22 21:11 XiNiHa

🦋 Changeset detected

Latest commit: 68c08588194ca03f1e7a1cb7c97a481c794c201a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@pothos/core Minor
@pothos-examples/envelope-helix-fastify Patch
@pothos-examples/graphql-shield Patch
@pothos-examples/helix Patch
@pothos-examples/nextjs Patch
@pothos-examples/open-telemetry Patch
@pothos-examples/prisma-federation Patch
@pothos-examples/prisma Patch
@pothos-examples/relay-windowed-pagination Patch
@pothos-examples/simple-classes Patch
@pothos-examples/simple-interfaces Patch
@pothos/website Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Nov 13 '22 21:11 changeset-bot[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
pothos ✅ Ready (Inspect) Visit Preview Nov 14, 2022 at 5:53AM (UTC)

vercel[bot] avatar Nov 13 '22 21:11 vercel[bot]