graphene/UPGRADE-v2.0.md

26 lines
385 B
Markdown
Raw Normal View History

2017-07-12 06:33:03 +03:00
# v1.0 Upgrade Guide
## Deprecations
* AbstractType is deprecated, please use normal inheritance instead.
Before:
```python
class CommonFields(AbstractType):
name = String()
class Pet(CommonFields, Interface):
pass
```
With 2.0:
```python
class CommonFields(object):
name = String()
class Pet(CommonFields, Interface):
pass
```