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
But I can't do this, no matter how hard I try, I tried to substitute the parse_value and parse_literal methods for the object in the "type" field of "GraphQLInputField", but this substitution will also affect the change in all other fields that use the same data type. Then I tried to make a copy of the object from the type field: "field.type = deepcopy(field.type)", but it didn't help, validation just stopped working. In this case, it would be convenient to have a field for the "GraphQLInputField" and "GraphQLArgument" classes to set a callback that would be called when receiving data to this input.
Such functionality would be useful for "INPUT_FIELD_DEFINITION" and for "ARGUMENT_DEFINITION".
The text was updated successfully, but these errors were encountered:
The essence of the problem: I wanted to implement a custom directive to check a string for matching a regular expression, for example:
But I can't do this, no matter how hard I try, I tried to substitute the parse_value and parse_literal methods for the object in the "type" field of "GraphQLInputField", but this substitution will also affect the change in all other fields that use the same data type. Then I tried to make a copy of the object from the type field: "field.type = deepcopy(field.type)", but it didn't help, validation just stopped working. In this case, it would be convenient to have a field for the "GraphQLInputField" and "GraphQLArgument" classes to set a callback that would be called when receiving data to this input.
Such functionality would be useful for "INPUT_FIELD_DEFINITION" and for "ARGUMENT_DEFINITION".
The text was updated successfully, but these errors were encountered: