Skip to content

Nullable ArrayField converted to not nullable GraphQL Type #1120

Open
@Akkarine

Description

@Akkarine
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:

image

Type is defined simply through Meta:

class SpecificationType(DjangoObjectType):

    class Meta:
        model = Specification

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions