Remove deprecated info.field_nodes property#4213
Open
Ckk3 wants to merge 3 commits intostrawberry-graphql:mainfrom
Open
Remove deprecated info.field_nodes property#4213Ckk3 wants to merge 3 commits intostrawberry-graphql:mainfrom
info.field_nodes property#4213Ckk3 wants to merge 3 commits intostrawberry-graphql:mainfrom
Conversation
Contributor
Reviewer's GuideRemoves the deprecated Info.field_nodes property from Strawberry’s GraphQL execution info type, cleans up associated typing/imports and tests, and documents the migration to Info.selected_fields in the release notes. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
bellini666
approved these changes
Feb 12, 2026
Member
|
Thanks for adding the Here's a preview of the changelog: Remove deprecated Migration guideBefore (deprecated): @strawberry.type
class Query:
@strawberry.field
def example(self, info: strawberry.Info) -> str:
field_nodes = info.field_nodes
...After: @strawberry.type
class Query:
@strawberry.field
def example(self, info: strawberry.Info) -> str:
selected_fields = info.selected_fields
...Here's the tweet text: |
Contributor
Greptile SummaryRemoves the deprecated
Confidence Score: 5/5
Important Files Changed
Flowchartflowchart TD
A["strawberry.Info (before)"] --> B["info.field_nodes (deprecated)"]
A --> C["info.selected_fields"]
B --> D["warnings.warn() + return _raw_info.field_nodes"]
C --> E["convert_selections(_raw_info, _raw_info.field_nodes)"]
F["strawberry.Info (after)"] --> G["info.selected_fields"]
G --> E
style B fill:#ff6b6b,color:#fff
style D fill:#ff6b6b,color:#fff
style G fill:#51cf66,color:#fff
style E fill:#51cf66,color:#fff
Last reviewed commit: 0e397e2 |
bellini666
approved these changes
Mar 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Remove the deprecated
info.field_nodesproperty fromstrawberry.Info, deprecated since 0.73.1.Migration guide
Before (deprecated):
After:
Types of Changes
Checklist
Summary by Sourcery
Remove the deprecated info.field_nodes API from strawberry.Info and document the migration to info.selected_fields.
Enhancements:
Documentation:
Tests: