index.js
function parseResourceQuery(options) {
  const query = {};

  for (option in options) {
    if (!options[option].resourceQuery) continue; // Skip if no query
    query[option] = options[option].resourceQuery; // Get the query
    delete options[option].resourceQuery; // Delete the field (to prevent passing it as a loader option)
  }

  return query;
}
function parseResourceQuery(options) {
  const query = {};

  for (option in options) {
    if (!options[option].resourceQuery) continue; // Skip if no query
    query[option] = options[option].resourceQuery; // Get the query
    delete options[option].resourceQuery; // Delete the field (to prevent passing it as a loader option)
  }

  return query;
}
function parseResourceQuery ( options ) { const query = { } ; for ( option in options ) { if ( ! options [ option ] . resourceQuery ) continue ; // Skip if no query query [ option ] = options [ option ] . resourceQuery ; // Get the query delete options [ option ] . resourceQuery ; // Delete the field (to prevent passing it as a loader option) } return query ; }
Processes the options object passed to the app by extracting the resource query
options and returning them so that they can be used later.
@param  {object} options The plugin options object
@return {object}         An object containing the resource queries and their relevant config names
Processes the options object passed to the app by extracting the resource query options and returning them so that they can be used later .