Closed bellini666 closed 5 months ago
This pull request adds support for auto mapping of ArrayFields in Django models. The implementation includes importing ArrayField
from django.contrib.postgres.fields
, adding a helper function _resolve_array_field_type
to handle the type resolution of ArrayFields, and updating the resolve_model_field_type
function to incorporate this new functionality. Additionally, new tests have been added to verify the correct handling of both single and nested ArrayFields.
Files | Changes |
---|---|
tests/fields/test_types.py strawberry_django/fields/types.py |
Implemented support for auto mapping of ArrayFields and added corresponding tests to ensure correct type resolution for both single and nested ArrayFields. |
Attention: Patch coverage is 91.66667%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 88.88%. Comparing base (
db5ca05
) to head (dfaa5e7
). Report is 1 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
strawberry_django/fields/types.py | 91.66% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Fix #200
Summary by Sourcery
This pull request introduces support for auto mapping of ArrayFields in Django models, including handling for both single-dimensional and multi-dimensional arrays. It also adds corresponding tests to ensure the correct type resolution and functionality.