Questions tagged [fastjsonpatch]

3 questions
0
votes
1 answer

Using fast-json-patched for document versioning and timelining

I'm attempting to create a revisable document, with the edits stored as fast-json-patched objects. The rough outline is : const jsonpatch = require('fast-json-patch'); /** * Generate a doc, with all the state changes recorded as * diffed…
Dycey
  • 4,767
  • 5
  • 47
  • 86
0
votes
1 answer

Need to add a list of in JSON via JSON Patch

I have been reading about JSON Patch. However, I cannot find a solution to my problem. I have a JSON which I need to add a list. For example: { "orders": "food" } I need to inject this list of items below the orders attribute. { "items": [ { …
Yejin
  • 541
  • 2
  • 15
  • 32
0
votes
1 answer

What's the best way to PATCH Postgres JSONB column from React->ExpressJS->Postgres?

I have a large table of data (rendered using AG-Grid) and I want update it in the Postgres backend, but the best approach to the next part has me prevaricating, in terms of the amount of work, and the best course of actions. Using the…
Dycey
  • 4,767
  • 5
  • 47
  • 86