Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Schema Modification does not work on Input types #70

Open
qcbuyertools opened this issue Feb 27, 2019 · 0 comments
Open

Schema Modification does not work on Input types #70

qcbuyertools opened this issue Feb 27, 2019 · 0 comments

Comments

@qcbuyertools
Copy link

Hello,

We are trying to remove a field on an input by doing SchemaModification, but from this code it looks like proto modification only works on GraphQLObjectType instead of GraphQLInputObjectType:

if (mapping.get(key) instanceof GraphQLObjectType) {
GraphQLObjectType val = (GraphQLObjectType) mapping.get(key);
if (modifications.containsKey(key)) {
for (TypeModification modification : modifications.get(key)) {
val = modification.apply(val);
}
}
result.put(key, val);
} else {
result.put(key, mapping.get(key));
}

Is there any chance we can add support for type modification on the input type?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants