Make graphene.Decimal consistent to models.DecimalField
See original GitHub issueDjango’s DecimalField class DecimalField(max_digits=None, decimal_places=None, **options)
with max_digits
and decimal_places
is super useful. graphene.Decimal
seems not to support definition of places before and after the point yet. What about making graphene.Decimal
more consistent with DecimalField
?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Can graphene resolver return Float instead of String for ...
To convert the decimal value to a float, use a custom resolver as shown. class ToyType(DjangoObjectType): class Meta: model = Toy fields ...
Read more >DecimalField - Django Models - GeeksforGeeks
DecimalField is a field which stores a fixed-precision decimal number, represented in Python by a Decimal instance. It validates the input using ...
Read more >Django: filtering on `DecimalField` doesn't work well?
This is my model : class Tick(BaseModel): . . trade_coin_volume = models.DecimalField( max_digits=15, decimal_places=8, ) trade_price = models.
Read more >Graphene Documentation - Read the Docs
A GraphQL Schema describes each Field in the data model provided by the server using ... from graphene import Schema, ObjectType, Decimal.
Read more >graph-wrap - PyPI
This is achieved by leveraging Graphene-Django to dynamically build, ... DecimalField(null=True, decimal_places=20, max_digits=40) # api.py class ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fkromer @jkimbo I assigned this issue to myself. I can tackle with this after completing #91 and #958
Wondering whats an update on this one?