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
The latest GraphiQL version used in the upcoming console shows all fields as deprecated, there is a chance that this is caused by Weaviate itself. Investigate and potentially fix.
The text was updated successfully, but these errors were encountered:
So, this seems to boil down to the following:
- There is an old bug in graphql-js (fixed in 2017) where the package
ignores the isDeprecated field, but instead uses
deprecationReason!=null to check whether a field is deprecated. This
bug has been fixed a long time ago: graphql/graphql-js#1035
- However, it seems various other dependencies have not updated to
include the fix, see graphql-go/graphql#504 (comment)
- The graphql-go package has been (correctly) using an empty string (as
is the default value for string) in Go if no deprecation reason is
set. As "isDeprecated" this should not ever have mattered
- Since the bug from bullet one still seems to be present in many
packages - as we have seen with the latest GraphiQL reason - the
graphql-go team have now instead added a new resolver which explicitly
sets the "deprecationReason" to null (rather than "") if not set. This
was released in v0.7.9 which this commit udpates to
- This fixes our issue, the fields are no longer shown as deprecated in
GraphiQL :)
The latest GraphiQL version used in the upcoming console shows all fields as deprecated, there is a chance that this is caused by Weaviate itself. Investigate and potentially fix.
The text was updated successfully, but these errors were encountered: