Back

[SOLVED] How to change return json to camalCase instead of PascalCase

  • 0
  • Self Hosted
  • Tools
  • Web
  • Databases
Suiii
27 Aug, 2023, 09:16
TL;DR
There was a support thread about changing the return JSON to camelCase instead of PascalCase. The issue was solved, but the solution is not mentioned in the summary.
Drake
27 Aug, 2023, 14:52

Are these your documents? If so, those are your attribute keys. You would need to recreate your attributes using camel case

Suiii
27 Aug, 2023, 17:00

If there is data , we can’t do right

Drake
27 Aug, 2023, 17:01

If you delete the attribute, you'd delete the data. So you'd have to create a temp attribute, copy the data over, recreate, and then copy it back.

This is how it's typically done in production (in multiple steps) to prevent impact on users

Suiii
27 Aug, 2023, 17:06

Using sdk to copy data or there is tool to do so

Drake
27 Aug, 2023, 17:07

Sdk

Suiii
27 Aug, 2023, 17:10

THanks.

Drake
27 Aug, 2023, 17:46

[SOLVED] How to change return json to camalCase instead of PascalCase

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more