Artifactory AQL not working with relative time parameters -


this below aql query works fine , gives me expected results when use time relateive time parameters 2w 5d getting 400 bad request.

items.find(   {      "repo": "test-repo",     "name" :{"$match": "*.13.4.*.*.nupkg"},     "created" : {"$lte" : "2016-11-11"}   } )  .sort({"$desc":["created"]}) .offset(20) 

400 bad request below query

items.find(   {      "repo": "test-repo",     "name" :{"$match": "*.13.4.1.*.nupkg"},     "created" : {"$last" : "3d"}   } ) 

i error

) , looks there syntax error near following sub-query: $last" : "3d"} } )

also there way use current date parameter instead of passing date everytime? please advise.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -