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

385 B

v1.0 Upgrade Guide

Deprecations

  • AbstractType is deprecated, please use normal inheritance instead.

Before:

class CommonFields(AbstractType):
    name = String()

class Pet(CommonFields, Interface):
    pass

With 2.0:

class CommonFields(object):
    name = String()

class Pet(CommonFields, Interface):
    pass