graphql-python / graphql-python/graphene-django
Nullable ArrayField converted to not nullable GraphQL Type
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 760
- PR merge metrics
- No merged PRs in 30d
Description
* **What is the current behavior?**
Аfter #545 for `django.db.models.ArrayField` with `null=True` we getting not nullable GraphQL Type.
* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem** via
a github repo, https://repl.it or similar (you can use this template as a starting point: https://repl.it/@jkimbo/Graphene-Django-Example).
All same as in #536, but define ArrayField as nullable in model:
```python
class Example(models.Model):
simple_array = ArrayField(models.CharField(max_length=255), blank=True, null=True)
```
* **What is the expected behavior?**
We can have null values for this field.
* **What is the motivation / use case for changing the behavior?**
* **Please tell us about your environment:**
- Version: graphene-django 2.15
- Platform: Django 3.1.6
* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow)
We used older version before and all was fine (that's why I blame #545)
My case:

Type is defined simply through Meta:
```python
class SpecificationType(DjangoObjectType):
class Meta:
model = Specification
```
Contributor guide
Assessment
This issue has not been assessed yet.