The Wayback Machine - https://web.archive.org/web/20201020210856/https://github.com/topics/parse-server
Skip to content
#

parse-server

Here are 230 public repositories matching this topic...

zmras
zmras commented May 15, 2020

Hi! Let's assume I have the following data:

obj = {
  _id: 'someId',
  items: [
    { value: 'a', count: 5 },
    { value: 'b', count: 1 },
  ]
}

Please, I want to know how can I use obj.increment() to increment the count field of the first element in items?

I have tried obj.increment('items.0.count') but it doesn't work. I got the following error: Cannot read property '0'

❄️ A React-Native Android iOS Starter App/ BoilerPlate / Example with Redux, RN Router, & Jest with the Snowflake Hapi Server running locally or on RedHat OpenShift for the backend, or a Parse Server running locally or remotely on Heroku

  • Updated Mar 7, 2019
  • JavaScript
fischerscode
fischerscode commented May 22, 2020

This is an idea for a new feature:
It would be comfortable if LiveQuery and/or QueryBuilder would be able to use the CoreStore to save the last result for offline usage.
Each query would generate a key based on the search operators. Using this key, the objects get pined to the CoreStore. This would require a pin function that can take a key. (like in the android sdk)
Whenever the server is unre

Improve this page

Add a description, image, and links to the parse-server topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the parse-server topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.