Skip to content

Commit 5fe5f01

Browse files
committed
Release 🍓 0.271.0
1 parent 67910d8 commit 5fe5f01

File tree

3 files changed

+31
-26
lines changed

3 files changed

+31
-26
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,36 @@
11
CHANGELOG
22
=========
33

4+
0.271.0 - 2025-06-04
5+
--------------------
6+
7+
Added a new configuration option `_unsafe_disable_same_type_validation` that allows disabling the same type validation check in the schema converter. This is useful in cases where you need to have multiple type definitions with the same name in your schema.
8+
9+
Example:
10+
11+
```python
12+
@strawberry.type(name="DuplicatedType")
13+
class A:
14+
a: int
15+
16+
17+
@strawberry.type(name="DuplicatedType")
18+
class B:
19+
b: int
20+
21+
22+
schema = strawberry.Schema(
23+
query=Query,
24+
types=[A, B],
25+
config=strawberry.StrawberryConfig(_unsafe_disable_same_type_validation=True),
26+
)
27+
```
28+
29+
Note: This is an unsafe option and should be used with caution as it bypasses a safety check in the schema converter.
30+
31+
Contributed by [Asylbek](https://github.com/narmatov-asylbek) via [PR #3887](https://github.com/strawberry-graphql/strawberry/pull/3887/)
32+
33+
434
0.270.6 - 2025-06-04
535
--------------------
636

RELEASE.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "strawberry-graphql"
3-
version = "0.270.6"
3+
version = "0.271.0"
44
packages = [{ include = "strawberry" }]
55
description = "A library for creating GraphQL APIs"
66
authors = ["Patrick Arminio <[email protected]>"]

0 commit comments

Comments
 (0)