mkeology commented on issue #147: typescript: compilation error : Types of 
property 'sort' are incompatible.
URL: https://github.com/apache/couchdb-nano/issues/147#issuecomment-471806461
 
 
   Solved : just needed to add in Nano.MangoQuery context for the query object 
👍 
   const q : Nano.MangoQuery =  {
   
   myMethod(){
      const q : Nano.MangoQuery = {
               selector: {
                           myAttribut: { "$eq": 'mydataValue' },
               },           
               use_index: 'myIndex',
               sort: {"attr_set_in_index": "desc"},
               limit: 10,
               update: true,
               execution_stats: true
        };
   }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to