File tree Expand file tree Collapse file tree 3 files changed +45
-40
lines changed
Expand file tree Collapse file tree 3 files changed +45
-40
lines changed Original file line number Diff line number Diff line change 11CHANGELOG
22=========
33
4+ 0.289.7 - 2026-01-26
5+ --------------------
6+
7+ Fix nested generics with resolver-backed fields to avoid duplicate type names.
8+
9+ Example (previously raised ` DuplicatedTypeName ` ):
10+
11+ ``` python
12+ import strawberry
13+
14+
15+ @strawberry.type
16+ class Collection[T]:
17+ field1: list[T] = strawberry.field(resolver = lambda : [])
18+
19+
20+ @strawberry.type
21+ class Container[T]:
22+ items: list[T]
23+
24+
25+ @strawberry.type
26+ class TypeA : ...
27+
28+
29+ @strawberry.type
30+ class TypeB : ...
31+
32+
33+ @strawberry.type
34+ class Query :
35+ @strawberry.field
36+ def a (self ) -> Container[Collection[TypeA]]: ...
37+
38+ @strawberry.field
39+ def b (self ) -> Container[Collection[TypeB]]: ...
40+
41+
42+ strawberry.Schema(query = Query)
43+ ```
44+
45+ Contributed by [ Thiago Bellini Ribeiro] ( https://github.com/bellini666 ) via [ PR #4162 ] ( https://github.com/strawberry-graphql/strawberry/pull/4162/ )
46+
47+
4480.289.6 - 2026-01-26
549--------------------
650
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11[project ]
22name = " strawberry-graphql"
3- version = " 0.289.6 "
3+ version = " 0.289.7 "
44description = " A library for creating GraphQL APIs"
55authors = [{
name =
" Patrick Arminio" ,
email =
" [email protected] " }]
66license = { text = " MIT" }
You can’t perform that action at this time.
0 commit comments