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 11CHANGELOG
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+
4340.246.0 - 2024-10-07
535--------------------
636
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " strawberry-graphql"
33packages = [ { include = " strawberry" } ]
4- version = " 0.246.0 "
4+ version = " 0.246.1 "
55description = " A library for creating GraphQL APIs"
66authors = [" Patrick Arminio <patrick.arminio@gmail.com>" ]
77license = " MIT"
You can’t perform that action at this time.
0 commit comments