Start a new topic

change column name in data store

Can I change column name inline?

1 person has this question
1 Comment

What do you mean by inline?



Since we're built on a schema-less database (not relational), updating a column name could be a bit expensive, depending on the size of your collection. For more on Kinvey's database practices, see our CTO's latest [blog post.](http://www.kinvey.com/blog/3732/data-modeling-in-kinvey "blog post.")



You can use the $rename operator (see MongoDB docs [here](http://docs.mongodb.org/manual/reference/operator/update/rename/ "here")) and use the update method (see Kinvey ref [here](http://devcenter.kinvey.com/html5/reference/business-logic/reference.html#collection-access-module "here").)

Login or Signup to post a comment