Questions tagged [racerjs]

Racer is a realtime model synchronization engine for Node.js.

Racer is a realtime model synchronization engine for . Racer is designed to work together with the MVC framework .

13 questions
6
votes
3 answers

Derby.js (Racer) access control

I'm new in Derby.js environment, and as far as I see Racer is exposing all the data on client side. So, basically anybody could manipulate any data stored on server? Am I correct? Is there any way to manage access control?
Dmitry Demidenko
  • 3,427
  • 1
  • 22
  • 22
2
votes
1 answer

Server side query rerun for paging, sort or filtering

What is the best approach to rerun a server query/subscription for a specific connected client when some data on that client changes? This would be very useful for server side filtering, ordering or paging. For example, the client has a table with…
Rui Gonçalves
  • 1,164
  • 8
  • 15
2
votes
2 answers

How to add an item to a collection in RacerJs DerbyJs?

I want to add an item to a collection using RacerJs/DerbyJs, but it just doesn't work. I must be really overlooking something... What I tried model.set('news', [ { text: "something" } ]); And that does set a news-item. However, when I do this…
Willem Mulder
  • 12,974
  • 3
  • 37
  • 62
1
vote
1 answer

Cannot update during an existing state transition (such as within `render` or another component's constructor)

In the code below _updateQID method is triggered on emitting event 'Questions.updateHeader' by another component. when emitted event and triggered _updateQID i get below warning in console: Warning: forceUpdate(...): Cannot update during an…
kapeskittu
  • 41
  • 1
  • 4
1
vote
1 answer

Get count of documents without loading the whole collection in DerbyJS 0.6

How can I count the results of a query without loading the whole resultset into memory? The easy way of counting documents returned by a query would be: var q = model.query('mycollection', { date: today }); q.fetch(function() { var length =…
Roman
  • 5,888
  • 26
  • 47
1
vote
1 answer

Import "normal" MongoDB collections into DerbyJS 0.6

Same situation like this question, but with current DerbyJS (version 0.6): Using imported docs from MongoDB in DerbyJS I have a MongoDB collection with data that was not saved through my Derby app. I want to query against that and pull it into my…
Roman
  • 5,888
  • 26
  • 47
1
vote
1 answer

Server-side model change event in DerbyJS 0.6

In DerbyJS: How do I add event listeners to "The Model", only server side, without having to rely on requests (express middleware)? Related question I've found: How to create server-side application logic on Racer / DerbyJS? Of course I can write an…
Roman
  • 5,888
  • 26
  • 47
1
vote
1 answer

couldn't show list of documents in the view using derbyjs

It's my first time with derbyjs, don't know if i am being stupid or is it a lack of documentation. i have a model called "books", and i am just trying to show list of books. here is my code: module.exports = { properties: { title: {type:…
shehata
  • 531
  • 6
  • 20
1
vote
1 answer

Derby.js in an off-line packaged Chrome App?

I've been working with AngularJS in an off-line packaged Chrome App. I came across off-line sync requirements that points to ShareJS and RacerJS. Is it possible to use Derby.js in an off-line packaged Chrome App? AngularJS example App. Possible…
Michael Cole
  • 15,473
  • 7
  • 79
  • 96
1
vote
1 answer

Remove collection from model RacerJS?

This is my client Side code: model.remove('agent',{'text':'online'}); I cant able to remove collection from model,Its shows following error in console Error: remove must be performed under a collection and document id. Invalid path: agent
Murugan Pandian
  • 768
  • 1
  • 5
  • 17
1
vote
1 answer

Is it possible to access m.mtime or m.ctime from share.js in derby.js?

I notice that (I think) share.js creates a sub-document called m that contains mtime and ctime in my database. Is there a derby.js way to $orderby based on those attributes? Thanks
rdprescott
  • 11
  • 1
1
vote
1 answer

derby.js How can I query using $skip and $limit on a sorted collection?

Sorry if this is a dump question but I cannot figure it out. As collections grow in size, it become convenient to render a portion of the data. For that we can something like model.query('items', { $skip: 30, $limit: 30 }) but what if we want to…
rprescott
  • 13
  • 3
1
vote
1 answer

Can racerJS use native mongo ObjectIDs?

I noticed that the latest commit to Racer's Mongo DB driver has to do with casting Racer's ids to Mongo ObjectIDs, any idea how to get that to work?
Dinana
  • 300
  • 3
  • 14