graphql-python / graphene-django

Build powerful, efficient, and flexible GraphQL APIs with seamless Django integration.
http://docs.graphene-python.org/projects/django/en/latest/
MIT License
4.29k stars 767 forks source link

adding optional_field in Serializermutation to enfore some fields to be optional #1455

Closed mahmoudmostafa0 closed 1 year ago

mahmoudmostafa0 commented 1 year ago

i want to use rest_framework Serializermutation and i want to force some fields to be optional

mahmoudmostafa0 commented 1 year ago

this was available in v2 however i found it removed in v3

mahmoudmostafa0 commented 1 year ago

thanks @kiendang for reviewing I`ve tried out the linting and this is the final results I got :

check for merge conflicts................................................Passed check json...............................................................Passed check yaml...............................................................Passed debug statements (python)................................................Passed fix end of files.........................................................Passed pretty format json.......................................................Passed trim trailing whitespace.................................................Passed black....................................................................Passed ruff.....................................................................Passed pre-commit: OK (6.86=setup[0.05]+cmd[6.81] seconds) congratulations :) (9.61 seconds)