You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In f6d79ab, the _value postfix of some of the graphql() parameters has been removed and gives a deprecation warning now.
I propose to revert that change (and reverse the deprecation message, i.e. display it now for the shorter names instead), because:
We want to be as compatible with GraphQL.js (the "GraphQL reference implementation") as possible, including the naming. This makes it easier for us to keep in sync with GraphQL.js in the future and for developers to translate examples directly from JavaScript to Python (you only need to translate from camelCase to snake_case, but not change names).
The _value postfix still exists in the ExecutionContext which is inconsistent
graphql-core-next and graphql-core/modern branch also use the names with the _value postfix
If we believe the _value postfix is really stupid and unnecessary or want to make other name changes, then please in the future let's first try to convice the GraphQL.js people (who are nice and responsive) to make that change there, and then we can replicate it in Python.
My understanding is that graphql-core's purpose is to match the js impl as closely as possible. Even in cases where that makes it a bit un-pythonic it makes it easier to keep it up-to-date with the reference implementation in js. I think that's one of the reasons graphene even exists: as a more pythonic, easier-to-use layer on top of graphql-core.
So I'm fine with making the variable names a bit worse (in my opinion) in order to make it easier to stay up-to-date. Also good to have this be close-ish to graphql-core-next so it's easier for people to switch over to that. I don't think _value is even important enough to talk to graphql.js people about.
This restores the `_value(s)` prefix of three parameters of the
execute() and graphql() functions, which had been removed in v2.1,
in order to be compatible with graphql-core-next (v3), graphql-js,
and the older versions again.
The prefix-less parameters are still accepted, but now produce
deprecation warnings (in v2.1 it was the other way around).
Ok, so I have reverted this change now. Starting with v2.3 the old parameter names will be valid again. The short parameter names still work, but will now produce deprecation warnings.
In f6d79ab, the
_value
postfix of some of thegraphql()
parameters has been removed and gives a deprecation warning now.I propose to revert that change (and reverse the deprecation message, i.e. display it now for the shorter names instead), because:
_value
postfix still exists in the ExecutionContext which is inconsistent_value
postfixIf we believe the
_value
postfix is really stupid and unnecessary or want to make other name changes, then please in the future let's first try to convice the GraphQL.js people (who are nice and responsive) to make that change there, and then we can replicate it in Python.@syrusakbary - what do you think?
The text was updated successfully, but these errors were encountered: