{"repo":"trmdy/graphene-django-cud","free":true,"listed":false,"github":"https://github.com/trmdy/graphene-django-cud","clone":"git clone https://github.com/trmdy/graphene-django-cud.git","description":"Easy and painless CUD-mutations for graphene-django.","language":"Python","stars":86,"topics":["graphene-django","graphene","graphene-django-cud","graphql","django-graphql","django"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Graphene Django CUD This package contains a number of helper mutations making it easy to construct create, update and delete mutations for django models. The helper mutations are: DjangoCreateMutation DjangoPatchMutation DjangoUpdateMutation DjangoDeleteMutation DjangoBatchCreateMutation DjangoBatchPatchMutation DjangoBatchUpdateMutation DjangoBatchDeleteMutation DjangoFilterUpdateMutation DjangoFilterDeleteMutation The package handles both regular ids and relay ids automatically. It also includes mutation lifecycle signals and experimental subscription helpers for create, update, delete, and custom Django signal events. Installation pip install graphene django cud Basic usage To use, here illustrated by DjangoCreateMutation , simply create a new inherting class. Suppose we have the following model and Node. Then we can create a create mutation with the following schema Note that the UserNode has to be registered as a field before the mutation is instantiated. This will be configurable in the future. The input to the mutation is a single variable input which is automatically created with the models fields. An example mutation would then be Documentation The full documentation can be found at https://graphene-django-cud.readthedocs.io/en/latest/.","default_branch":null,"files":null,"tree":[],"storefront":"/r/trmdy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/trmdy/graphene-django-cud/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}