graphene-django/graphene_django/rest_framework
Alisson Patricio 98825f9a0d
Remove default output fields from SerializerMutation
I found a little annoying that when we use a SerializerMutation all fields in the Serializer, used mostly for the Input, also gets added in the Output. 

The best reason to use a SerializerMutation is for the input validations that DRF brings to the table, the Output is very easy to set and most of the times we want to return our own ObjectType, not all fields used as the input.

What you guys think?
2023-08-22 04:01:55 +02:00
..
tests Use ruff in pre-commit (#1441) 2023-08-06 01:47:00 +03:00
__init__.py Initial implementation of serializer field converter 2017-06-26 09:19:49 +01:00
models.py Update mutation.py to serialize Enum objects into input values (#1431) 2023-07-27 02:41:40 +03:00
mutation.py Remove default output fields from SerializerMutation 2023-08-22 04:01:55 +02:00
serializer_converter.py Miscellaneous CI fixes (#1447) 2023-08-09 20:48:42 +03:00
types.py Fix duplicated ErrorType declaration (#539) 2019-03-31 12:01:43 +01:00