Ariadne GraphQL Modules 0.4.0
· One min read
Ariadne GraphQL Modules 0.4.0 has been released!
This release changes datamodel, simplifying the BaseType and moving its logic to new DefinitionType and BindableType base classes.
It also introduces new CollectionType that can be used to gather multiple types into single type, eg.:
class UserMutations(CollectionType):
__types__ = [
UserAvatarUploadMutation,
UserAvatarRemoveMutation,
UserCreateMutation,
UserUpdateMutation,
UserDeleteMutation,
]
Changelog
- Split logic from
BaseTypeintoDefinitionTypeandBindableType. - Add
CollectionTypeutility type for gathering types into single type.