Closed thomascobb closed 2 years ago
Yes, pinning the requirement to the minor version (graphql-core~=3.2.0
) would be the right thing to do.
format_error
was indeed deprecated, you can use the property GraphQLError.formatted
now (similar in GraphQL.js).
I have already fixed this in graphql-server 3.0.0b5,
On import (for instance when running tests) you get
It appears that
format_error
is now only importable fromgraphql.error.graphql_error
and notgraphql.error
. It also appears to now be deprecated: https://github.com/graphql-python/graphql-core/commit/09ff14f68bdce1e9cd71decc871fd38274b01971Would you like a PR to fix? If so, would you prefer just a change to the import path, or a dependency bump on
graphql-core>=3.2.0
and use of the new method?Also the README for graphl-core recommends using
graphql-core~=3.2.0
so I could also change that.