BlairAllegroTech / js-data-jsonapi

JsonApi Adapter for js-data
MIT License
15 stars 5 forks source link

Patch empty array #40

Closed rgant closed 7 years ago

rgant commented 7 years ago

When updating many-to-many relationship you need to be able to PATCH an empty list.

The way the code worked an empty array of data was serialized into nothing because it didn't initialize the data to be an array.

This fixes that and adds a test case.