Description
DecimalField entries are currently being converted to Float (
graphene-django/graphene_django/form_converter.py
Lines 56 to 59 in 8f5a425
Full support for Decimal would be great, but in the meantime I propose that DecimalField should be converted to String instead. Once you've converted a Decimal to a Float, you've probably lost the benefit of why you used Decimal in the first place, since you'll now have values like 3.14000000000000012
, rather than 3.14
. If it is converted to String, it is simple enough for the user to convert that String back to Decimal, whereas converting from Float to Decimal is not straightforward.