File tree Expand file tree Collapse file tree 3 files changed +31
-26
lines changed Expand file tree Collapse file tree 3 files changed +31
-26
lines changed Original file line number Diff line number Diff line change 1
1
CHANGELOG
2
2
=========
3
3
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
+
4
34
0.246.0 - 2024-10-07
5
35
--------------------
6
36
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " strawberry-graphql"
3
3
packages = [ { include = " strawberry" } ]
4
- version = " 0.246.0 "
4
+ version = " 0.246.1 "
5
5
description = " A library for creating GraphQL APIs"
6
6
authors = [" Patrick Arminio <patrick.arminio@gmail.com>" ]
7
7
license = " MIT"
You can’t perform that action at this time.
0 commit comments