How to run atlas function in app service cli locally in terminal

Sample atlas function
Function name is listSession.js


exports = async function (arg) {
  return arg;
};

Local Terminal Command


appservices function run listSession arg=1

Getting this error


Logs
  [Error occurred while executing findOne: (BadValue) cannot compare to undefined]
Result
{
  "error": "(BadValue) cannot compare to undefined"
}