restheart

How to update single object with RESTHeart patch?

孤者浪人 提交于 2020-01-11 13:05:11
问题 I am using RESTHeart and MongoDB. I have multiple JSON objects and I want to update a particular object at a time with a REST call. I am following https://softinstigate.atlassian.net/wiki/spaces/RH/pages/9207882/Reference+sheet , But I am not able to update my object. patch call is not give me 200 ok status. I am able to use patch , but I am not able to find out a particular object for the update. Rh.one('db') .one('api') .patch(counter, {}, {}) .then(function(response){ }); When I try some

should I authenticate with every call to RESTHeart?

偶尔善良 提交于 2019-12-24 03:24:01
问题 I want to write a messenger app on Swift, iOS and as a database I chose MongoDB and turned ON authentication on it. And for the bridge I chose RESTHeart(GitHub). But for input something to database from RESTHeart I use the next line: http PUT 127.0.0.1:8080/myfirstdb desc='this is my first db created with restheart' -a username:password So, I use authentication for each connection. So my question is: Is it OK, log in for each insert to database for the messenger app or there are another,

Restheart mongodb filtering by date

我的未来我决定 提交于 2019-12-12 03:35:01
问题 I'm currently trying to get some json data from mongoDB database, and I use restHeart plugin for make my query. I need to filter my answer with all result that the property "_lastupdated_on" is lower than the current date. I tried something like that but doesn't work : http://test:8081/purge/colPurge?filter={'_lastupdated_on':{'$eq':'2016-03-03T14:33:00Z'}} Any idea ? Version mongo 3.2 / restheart 1.1.6 Dorian 回答1: The restheart system properties (those starting with _) are not stored in the

How to update single object with RESTHeart patch?

白昼怎懂夜的黑 提交于 2019-12-02 10:01:33
I am using RESTHeart and MongoDB. I have multiple JSON objects and I want to update a particular object at a time with a REST call. I am following https://softinstigate.atlassian.net/wiki/spaces/RH/pages/9207882/Reference+sheet , But I am not able to update my object. patch call is not give me 200 ok status. I am able to use patch , but I am not able to find out a particular object for the update. Rh.one('db') .one('api') .patch(counter, {}, {}) .then(function(response){ }); When I try some condition if-match in curly braces then I get this error: 412 (Precondition Failed) LIKE Rh.one('db')

Status 500 Internal Server Error in IE-11 with Angular Js Application

混江龙づ霸主 提交于 2019-12-01 14:27:00
I am implementing single page application(SPA) using of Angular Js, MongoDb. And I am using rest call with promises. Rest call working fine in Chrome, Mozila browser which is using for development. But rest call is not working in IE-11. It is giving me 500 Internal Server Error . I am not able to find out line of rest call. Because it is not showing line number. But I can share sample code of rest call. Rh.all('apicall').get('dbname/_aggrs/'+ ar_dep +'?avars=' + query).then(function (d) { console.log("response data"); }); Above call is not printing console. Because It is breaking in IE-11, But

Get more than 1000 row in the data-table in Angular-JS from MongoDB?

时间秒杀一切 提交于 2019-11-28 02:28:04
I am implementing data-table and using MongoDb, Angular-Js. Data-table displaying max to max 1000 row. If API has 999 records then displaying 999 row, If API has 1001 then only displaying 1000 row. If API has 2000 Then also it is displaying 1000. $scope.standardOptions = DTOptionsBuilder .fromFnPromise(R.all('----api call--').getList()) .withDOM("<'dt-toolbar'<'col-xs-12 col-sm-6'f><'col-sm-6 col-xs-12 hidden-xs'l>r>" + "t" + "<'dt-toolbar-footer'<'col-sm-6 col-xs-12 hidden-xs'i><'col-xs-12 col-sm-6'p>>") .withBootstrap(); $scope.standardColumns = [ DTColumnBuilder.newColumn('flightNo')

Get more than 1000 row in the data-table in Angular-JS from MongoDB?

馋奶兔 提交于 2019-11-26 23:42:45
问题 I am implementing data-table and using MongoDb, Angular-Js. Data-table displaying max to max 1000 row. If API has 999 records then displaying 999 row, If API has 1001 then only displaying 1000 row. If API has 2000 Then also it is displaying 1000. $scope.standardOptions = DTOptionsBuilder .fromFnPromise(R.all('----api call--').getList()) .withDOM("<'dt-toolbar'<'col-xs-12 col-sm-6'f><'col-sm-6 col-xs-12 hidden-xs'l>r>" + "t" + "<'dt-toolbar-footer'<'col-sm-6 col-xs-12 hidden-xs'i><'col-xs-12