Comments (4)
Although a pretty simple workaround is to define the required_fields meta option.
from graphene-django-plus.
Hi @gghildyal
Hrm, I see what you mean. Yes, I agree with you. Most of the code is based on graphene's fields generation from django models and it mapps null to required (because most of the code is used for output).
Maybe we should force the required to consider blank? My only concern would be breaking the api too much =P. But maybe it is for the better!
from graphene-django-plus.
Hi @bellini666
You are right about the fact that its graphene's field generation that causes null fields to come up as required, so its an issue with this library per se. And given that theres is an easy workaround to it, I don't think it's a big issue.
from graphene-django-plus.
@gghildyal was thinking about this issue and I think it is correct to consider the blank
for requireness. Am going to do a change about this today.
from graphene-django-plus.
Related Issues (17)
- Make relay interface optional
- BaseModelMutation doesn't generate input fields for reverse foreign key relationships. HOT 1
- Issues with new 2.3 release HOT 10
- Any plans on merging this functionality with graphene-django? HOT 2
- Check object_permissions argument before check permission inside get_node on ModelType class HOT 2
- #support #UploadType HOT 4
- Can you add where as input in the query too with this library as in graphene-django-crud library? HOT 1
- When and where to set some field value before mutation? HOT 6
- Why UUID is a Telephone Type? HOT 1
- 'FloatField' object has no attribute 'max_digits' HOT 2
- Use without relay? HOT 2
- ObjectPermissionChecker is undefined when launching without django-guardian installed
- This lib is DEPRECATED (read this)
- Project status - deprecated? HOT 2
- Version 2.1 change breaks current object permissions HOT 2
- Order of imports affects the operation of the library HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphene-django-plus.