import { stringify } from 'query-string' ; export default ( urlParams , basePath = '/graphql' ) => { let string = basePath ; if ( urlParams ) { string += `?${ stringify ( urlParams ) }` ; } return string ; } ;