question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make graphene.Decimal consistent to models.DecimalField

See original GitHub issue

Django’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:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
ulgenscommented, May 11, 2020

@fkromer @jkimbo I assigned this issue to myself. I can tackle with this after completing #91 and #958

0reactions
awaisdar001commented, Jul 4, 2022

Wondering whats an update on this one?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found