How do I modify the result data from the query in example below? Am I using components in a bad practise here?
//Parent component
render () {
return (
<Container>
//Component with a dropdown with filter options
<SettingsBar onFilterchange={this.handleChange}/>
<Query query={EVENT_QUERY}}>
//Code.....
return (
//Component that displays the data
<Feed data={data.events}/> <------ How can I modify this data when Settingsbar triggers filterChanged above?
);
</Query>
</Container>
)
}