graphene/UPGRADE-v2.0.md
2017-07-11 20:33:03 -07:00

26 lines
385 B
Markdown

# 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
```