Questions tagged [restheart]

RESTHeart is a RESTful gateway for access to MongoDB.

RESTHeart connects to MongoDB and opens data to the Web via a simple RESTful API.

The json based API supports CRUD and data model operations, Basic or JWT authentication, role-based authorization and CORS.

RESTHeart can be extended with custom security implementations, request transformers, checkers and hooks.

108 questions
0
votes
0 answers

How to solve "error executing aggreation pipeline: variable 'XYZ' not bound" in MongoDB aggregation?

I am using Restheart and MongoDB and also new in these, I have to write aggregation in MongoDb. I written aggregation in mongoDb with $match. Here Sample Code: { "aggrs": [{ "type": "pipeline", "uri":…
Varun Sharma
  • 4,632
  • 13
  • 49
  • 103
0
votes
0 answers

RestHeart passing multiple parametrs in aggregation

Basically I am trying to use REST hreat to create two variables issuerId and sectionName. I am trying to get data from the URI mentioned…
athenatechie
  • 699
  • 2
  • 8
  • 15
0
votes
1 answer

RestHeart Deleting Specific JSON object from Collection

The title explains most of it. I am trying to remove all objects from a collection where {"name": "Steve"} for example but I can't find anything in the documentation on how to achieve this without two separate http requests. I am using NodeJS with…
Ethan Gallant
  • 308
  • 4
  • 11
0
votes
1 answer

Creating multiple aggregations using RestHeart

I am using RestHeart to make REST calls for MOngoDB aggregation queries.I am trying to create multiple aggregations as a one time activity and then execute them whenever i need them later. Currently I see that only one aggregation gets created at a…
athenatechie
  • 699
  • 2
  • 8
  • 15
0
votes
1 answer

RESTHeart filtering and sorting by sub documents property

I m working with mongodb and restheart. In my nosql db i have a unique document with this structure: { "_id": "docID", "users": [ { "userID": "12", "elements": [ { …
Alex
  • 1,515
  • 2
  • 22
  • 44
0
votes
1 answer

RestHeart Aggregation: How to sort results?

I have an aggregation pipeline in RESTHeart. How can the results be sorted? In a normal RESTHeart query, we can use the ?sort_by query parameter. However, when adding this to the URL in an aggregation query, the sort does not seem to be…
Tom Kerswill
  • 421
  • 6
  • 10
0
votes
1 answer

RESTHeart with windows-1251 charset

MongoDB server; Text data in windows-1251 charset. RESTHeart server. PHP with window-1251 charset making a request to RESTHeart. Text data is broken To get text "back" I use this code (from utf-8 to 1251, then from utf-8 to 1251, then back to…
Alexey
  • 71
  • 7
0
votes
1 answer

Restheart query for an nested array subdocument

I m working with mongodb and restheart. In my nosql db i have a unique document with this structure: { "_id": "docID", "users": [ { "userID": "12", "elements": [ { …
Alex
  • 1,515
  • 2
  • 22
  • 44
0
votes
1 answer

How to increase pagesize temporarily?

Just for testing purpose I would like to get 100 , 500 , 1000 , 5000 , 10000 , 20000 ... records from a Collection. At the moment the largest pagesize is 1000. How can I increase it to whatever I would like for just testing ?
Csaba Kiss
  • 180
  • 1
  • 14
0
votes
1 answer

How to get Etag for Restheart collection

I am trying to delete a collection using the Restheart API. $http DELETE 127.0.0.1:8080/testDB/testCollection but I get the error: "The collection's ETag must be provided using the 'If-Match' header." If I use GET: http GET…
ckjun
  • 3
  • 3
0
votes
1 answer

How can I filter the data via date on RESTHeart

I get the following data from the RestHeart API service. I try to filter the data by filter={'header.timestamp.long':{'$gte': {'$date':'2017-02-14T19:00:00Z'}}} or filter={'header.timestamp.long.$numberLong':{'$gte':…
Allen Lin
  • 11
  • 3
0
votes
1 answer

Restheart | filter within an array

How do I filter documents if there are sub sets of data (data within arrays) using Restheart This is a sample JSON { "_id" : ObjectId("58760e53a4c0a73900472eb0"), "foods" : [ "root vegetables", "yogurt", "other…
Switch
  • 14,783
  • 21
  • 69
  • 110
0
votes
2 answers

Ajax POST request to Restheart MongoDB service

I am attempting to POST to a Restheart/MongoDB server using jQuery/ajax with some difficulty. The response returned is as if I ran a GET and not a POST. And it also appears that it is trying to execute the response as if it were a callback. I am…
Joel
  • 1,579
  • 3
  • 12
  • 19
0
votes
1 answer

restheart date format issue

I Have two data in the same file like { "_id": { "$oid": "57852a53" }, "date": "2016-1-7" }, { "_id": { "$oid": "57852a54" }, "date": "2016-1-22 } if I querying …
Ronniemittal
  • 369
  • 4
  • 7
0
votes
1 answer

How to restrict the result to json docs belonging to a specified user

I am considering start using RestHeart, however I have not found a satisfactory answer when browsing around for the following question: In a collection there is one attribute naming the owner of the doc (_id of the user). Given an authenticated…
Ribomation
  • 121
  • 4