Skip to content

Commit d504428

Browse files
committed
Release 🍓 0.246.1
1 parent 0d880b7 commit d504428

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.246.1 - 2024-10-09
5+
--------------------
6+
7+
This release adds support for using raw Python enum types in your schema
8+
(enums that are not decorated with `@strawberry.enum`)
9+
10+
This is useful if you have enum types from other places in your code
11+
that you want to use in strawberry.
12+
i.e
13+
```py
14+
# somewhere.py
15+
from enum import Enum
16+
17+
18+
class AnimalKind(Enum):
19+
AXOLOTL, CAPYBARA = range(2)
20+
21+
22+
# gql/animals
23+
from somewhere import AnimalKind
24+
25+
26+
@strawberry.type
27+
class AnimalType:
28+
kind: AnimalKind
29+
```
30+
31+
Contributed by [ניר](https://github.com/nrbnlulu) via [PR #3639](https://github.com/strawberry-graphql/strawberry/pull/3639/)
32+
33+
434
0.246.0 - 2024-10-07
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,7 +1,7 @@
11
[tool.poetry]
22
name = "strawberry-graphql"
33
packages = [ { include = "strawberry" } ]
4-
version = "0.246.0"
4+
version = "0.246.1"
55
description = "A library for creating GraphQL APIs"
66
authors = ["Patrick Arminio <patrick.arminio@gmail.com>"]
77
license = "MIT"

0 commit comments

Comments
 (0)