Skip to content

docs: add federation + Prisma usage guidance#1522

Open
macrozone wants to merge 1 commit into
hayes:mainfrom
macrozone:docs/federation-prisma-usage
Open

docs: add federation + Prisma usage guidance#1522
macrozone wants to merge 1 commit into
hayes:mainfrom
macrozone:docs/federation-prisma-usage

Conversation

@macrozone

Copy link
Copy Markdown

Summary

  • Documents common issue with field selection in resolveReference when using federation plugin with Prisma
  • Exposed fields (t.exposeString(), t.exposeInt(), etc.) are not automatically included in select, causing reference resolution failures across subgraphs
  • Provides solution using queryFromInfo to automatically determine required fields based on GraphQL query information

Changes

  • Added new "Usage with Prisma" section to federation plugin documentation
  • Includes problem example showing the issue
  • Provides recommended solution using queryFromInfo from @pothos/plugin-prisma

Test plan

  • Documentation is clear and follows existing patterns
  • Code examples are syntactically correct
  • Solution addresses the reported issue

Fixes #1321

🤖 Generated with Claude Code

Document common issue with field selection in resolveReference when using federation plugin with Prisma. Exposed fields are not automatically included in select, causing reference resolution failures.

Provides solution using queryFromInfo to automatically determine required fields.

Fixes hayes#1321

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Sep 8, 2025

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b5105f0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel

vercel Bot commented Sep 8, 2025

Copy link
Copy Markdown

@macrozone is attempting to deploy a commit to the Michael Hayes' projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

prisma plugin select with expose does not work properly if fetched through resolveReference

1 participant