src/index.js
function getMissingVars(flurQL, opts) {
  const vars = flurQL.vars;

  if (!vars || !Array.isArray(vars)) {
    return [];
  }

  if (opts && opts.vars) {
    return vars.filter((v) => { return !opts.vars[v]; });
  } else {
    return vars;
  }
}
function getMissingVars(flurQL, opts) {
  const vars = flurQL.vars;

  if (!vars || !Array.isArray(vars)) {
    return [];
  }

  if (opts && opts.vars) {
    return vars.filter((v) => { return !opts.vars[v]; });
  } else {
    return vars;
  }
}
function getMissingVars ( flurQL , opts ) { const vars = flurQL . vars ; if ( ! vars || ! Array . isArray ( vars ) ) { return [ ] ; } if ( opts && opts . vars ) { return vars . filter ( ( v ) => { return ! opts . vars [ v ] ; } ) ; } else { return vars ; } }
given a query and options, returns a vector of variables that were not provided via options. We use this to look for the variables in props
given a query and options returns a vector of variables that were not provided via options . We use this to look for the variables in props