function callMeteorMethod(
  Class, methodName, methodArgs, methodOptions, wrappedCallback
) {
  const Collection = Class.getCollection();
  if (!Collection) {
    return;
  }
  const connection = Collection._connection;

  return connection.apply(
    methodName, methodArgs, methodOptions, wrappedCallback
  );
}

export default callMeteorMethod;
function callMeteorMethod(
  Class, methodName, methodArgs, methodOptions, wrappedCallback
) {
  const Collection = Class.getCollection();
  let connection = Collection && Collection._connection;
  if (!connection && (!Collection || !Collection._name)) {
    connection = Meteor.connection;
  }

  return connection.apply(
    methodName, methodArgs, methodOptions, wrappedCallback
  );
}

export default callMeteorMethod;
Fix client validation for classes without assigned collection
Fix client validation for classes without assigned collection
