lib/query.js
function isValidQuery(definition) {
  var requiredKeys = [
    'event_name',
    'resource_type',
    'tracker_id'
  ];

  return _.all(requiredKeys, function(key) {
    return _.has(definition, key);
  });
}
function isValidQuery(definition) {
  var requiredKeys = [
    'event_name',
    'resource_type',
    'tracker_id'
  ];

  return _.all(requiredKeys, function(key) {
    return _.has(definition, key);
  });
}
function isValidQuery ( definition ) { var requiredKeys = [ 'event_name' , 'resource_type' , 'tracker_id' ] ; return _ . all ( requiredKeys , function ( key ) { return _ . has ( definition , key ) ; } ) ; }
Checks for required keys to execute a query

@param {definition} Query definition
@returns {boolean}
Checks for required keys to execute a query