import { FILE_NODE_TYPE } from './to-node' ; export default ( { nodes } ) => { return { Query : { allFile ( parent , args ) { const result = nodes . filter ( ( node ) => node . type === FILE_NODE_TYPE ) ; return { nodes : result , } ; } , } , } ; } ;