import { GithubIssueNodeType } from './api' ; export default ( { nodes } ) => { return { Query : { allGithubIssue ( ) { const result = nodes . filter ( ( node ) => node . type === GithubIssueNodeType ) ; return { nodes : result , } ; } , } , } ; } ;