UNPKG

@dillonkearns/elm-graphql

Version:

<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">

14 lines (11 loc) 337 B
"use strict"; function getCurrentRequest(loaderContext) { if(loaderContext.currentRequest) return loaderContext.currentRequest; const request = loaderContext.loaders .slice(loaderContext.loaderIndex) .map(obj => obj.request) .concat([loaderContext.resource]); return request.join("!"); } module.exports = getCurrentRequest;