Ariadne GraphQL Modules 0.4.0
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
BaseType
intoDefinitionType
andBindableType
. - Add
CollectionType
utility type for gathering types into single type.