private void RemoveFieldsOfType(string typeName, ISchemaType contextType) { foreach (var field in contextType.GetFields().ToList()) { if (field.GetReturnType(this) == typeName) { contextType.RemoveField(field.Name); } } }
private void RemoveFieldsOfType(string schemaType, ISchemaType contextType) { foreach (var field in contextType.GetFields().ToList()) { if (field.ReturnType.SchemaType.Name == schemaType) { contextType.RemoveField(field.Name); } } }