d-pac / restful-keystone

Automatic RESTful API enabler for KeystoneJS
MIT License
160 stars 50 forks source link

Unable to update nested fields #4

Open razb opened 9 years ago

razb commented 9 years ago

I can successfully update first level fields, but, any field that is defined as nested in the Keystone model doesn't get updated. There are no errors, however nothing changes. Any suggestions on where to look for debugging clues?

I can take the output from a GET operation, change the values of certain fields and all except the nested fields will be updated after using the resulting JSON for a PATCH request...

creynders commented 9 years ago

I'll look into this ASAP!

creynders commented 9 years ago

Sorry for the long wait, I should have some time this week to look into this and fix it.

creynders commented 9 years ago

Probably related to: https://github.com/keystonejs/keystone/issues/1657

cameronbell commented 8 years ago

+1

PATCH is only updating top level fields.

cameronbell commented 8 years ago

This change https://github.com/keystonejs/keystone/commit/39ddd3af2120916982117ca2d64215b9681b0bbe is working as a patch until keystonejs 0.4.x. At least no problems with it yet.