PaulGilmartin / graph_wrap

Transform a Django REST Framework or Tastypie based API into a fully compliant GraphQL API.
MIT License
85 stars 2 forks source link

Error "'GraphQLResolveInfo' object has no attribute 'field_asts'", #27

Open sachingaikwad123 opened 1 year ago

sachingaikwad123 commented 1 year ago

I am using graph_wrap version 0.1.3, Django 3.2, djangrestframework 3.12.4, graphene 3.2.2, graphene-django 3.1.2

  1. When I run "python manage.py runserver", there are no errors report.
  2. When I am trying to run graphql query to get list of items for one of the entity, I am getting this error:
{
    "errors": [
        {
            "message": "'GraphQLResolveInfo' object has no attribute 'field_asts'",
            "locations": [
                {
                    "line": 2,
                    "column": 5
                }
            ],
            "path": [
                "all_countrys"
            ]
        }
    ],
    "data": {
        "all_countrys": null
    }
}
PaulGilmartin commented 1 year ago

@sachingaikwad123 Thanks for raising. The issue may be due to the fact that I have not managed to get time to add support for graphene-django 3.x.x yet. The latest version I tested with was 2.1.5. I hope to have time to add support this summer. In the mean time, you could try downgrading graphene-django to 2.1.5 to see if that helps.