mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-14 02:02:20 +03:00
fixed
This commit is contained in:
parent
f544ac6f4f
commit
628ad8e1ef
|
@ -17,16 +17,17 @@ from neomodel import (
|
||||||
ZeroOrOne,
|
ZeroOrOne,
|
||||||
One,
|
One,
|
||||||
OneOrMore,
|
OneOrMore,
|
||||||
|
JsonArrayProperty,
|
||||||
)
|
)
|
||||||
|
|
||||||
from neomodel.relationship_manager import RelationshipDefinition
|
from neomodel.relationship_manager import RelationshipDefinition
|
||||||
|
|
||||||
try:
|
# try:
|
||||||
# TimurMardanov fork branch. Supports contain 2D-xD arrays
|
# # TimurMardanov fork branch. Supports contain 2D-xD arrays
|
||||||
from neomodel import JsonArrayProperty # noqa
|
# from neomodel import JsonArrayProperty # noqa
|
||||||
jsonArrayProperty = JsonArrayProperty
|
# jsonArrayProperty = JsonArrayProperty
|
||||||
except:
|
# except:
|
||||||
jsonArrayProperty = StringProperty
|
# jsonArrayProperty = StringProperty
|
||||||
|
|
||||||
from graphene import (
|
from graphene import (
|
||||||
ID,
|
ID,
|
||||||
|
@ -235,6 +236,6 @@ def convert_postgres_array_to_list(field, registry=None):
|
||||||
|
|
||||||
|
|
||||||
@convert_django_field.register(JSONProperty)
|
@convert_django_field.register(JSONProperty)
|
||||||
@convert_django_field.register(jsonArrayProperty)
|
@convert_django_field.register(JsonArrayProperty)
|
||||||
def convert_json_field_to_string(field, registry=None):
|
def convert_json_field_to_string(field, registry=None):
|
||||||
return JSONString(description=field.help_text, required=field.required)
|
return JSONString(description=field.help_text, required=field.required)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user