Exception "invalid operator '$arrayElemAt'" is shown when it is used into the MongoDB queries and the application is running into RHMAP

Solution Verified - Updated -

Issue

  • Exception "invalid operator '$arrayElemAt'" is shown when it is used into the MongoDB queries and the application is running into RHMAP
  • Unable to use $arrayElemAt into RHMAP
  • I have created a query in mongoose (mongodb) in which I have used $arrayElemAt. It's working fine on my local machine but on RHMAP it is giving following error.

    exception:  invalid operator '$arrayElemAt' 
    

Environment

  • Red Hat Mobile Application Platform ( RHMAP) - 3.17.0
  • MongoDB - 2.X
  • $arrayElemAt

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.