gatsby-uc / plugins

Monorepo for plugins in the Gatsby User Collective.
https://gatsbyuc.dev
MIT License
58 stars 34 forks source link

bug(gatsby-source-strapi): updating a JSON fields gets lost #428

Open laurenskling opened 1 year ago

laurenskling commented 1 year ago

Describe the bug

In one of my models, I have a JSON field. When it changes content, the Node gets lost. It doesn't exist anymore in graphql..

To Reproduce

Steps to reproduce the behavior:

  1. create a model with a JSON field
  2. fill it with something that will match the isPlainObject
  3. start the project, change the data, make sure updatedAt (cloud) build runs.
  4. The data is lost. The Node is lost.

Expected behavior

I'm expecting the JSON Node to be alive with the new content.

System Info

System: OS: macOS 12.6.5 CPU: (8) arm64 Apple M2 Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.16.0 - /var/folders/50/3fndm5d13gs_kr96nwxpxd9c0000gn/T/yarn--1684222462858-0.5198471121130634/node Yarn: 1.22.19 - /var/folders/50/3fndm5d13gs_kr96nwxpxd9c0000gn/T/yarn--1684222462858-0.5198471121130634/yarn npm: 9.5.1 - /usr/local/bin/npm Languages: Python: 3.10.9 - /usr/local/bin/python Browsers: Chrome: 113.0.5672.92 Safari: 16.4.1

visuvelu commented 1 year ago

yes, facing the same issue.