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
So, I am trying to reuse some fields in other objects by spreading them like so:
fields: {
...Type.getFields()
}
Where Type has the fields I want to reuse.
However, I get the following error:
Error: Type.someField should provide "deprecationReason" instead of "isDeprecated".
None of the fields have isDeprecated in my code, but I'm guessing those get added later internally. If I add isDeprecated to one of the fields I get the same error.
Is isDeprecated no longer used or am I not using .getFields correctly?
The text was updated successfully, but these errors were encountered:
The code you're writing is not supported, the result of getFields() is a runtime representation of fields, not original field configuration. If you wish to reuse field definitions across types, you should export the field definition code directly
So, I am trying to reuse some fields in other objects by spreading them like so:
Where Type has the fields I want to reuse.
However, I get the following error:
None of the fields have
isDeprecated
in my code, but I'm guessing those get added later internally. If I addisDeprecated
to one of the fields I get the same error.Is
isDeprecated
no longer used or am I not using.getFields
correctly?The text was updated successfully, but these errors were encountered: