Open eduardmartinez opened 8 years ago
Hi. I was trying to add a meta object into a relationship's object. For example, I have a user object which has many cars but I need to send some extra data about cars. So the request at the end should be like this:
meta
user
cars
{ data: { attributes: {}, id: '1', type: 'users', relationships: { 'cars': [ { id: '3', type: 'cars', meta: { wherever: 'happiness' } } ] } } }
I tried to do:
//carElement has id:'3' and type:'cars' carElement.form.meta = { wherever: 'happiness' }; user.form.link('cars', carElement); user.save();
But I noticed when the request is sent, it doesn't send meta in any place.
How could I make this work?
Thanks in advance.
Please, anyone knows how to make this work?
Ref #34
Hi. I was trying to add a
meta
object into a relationship's object. For example, I have auser
object which has manycars
but I need to send some extra data aboutcars
. So the request at the end should be like this:I tried to do:
But I noticed when the request is sent, it doesn't send
meta
in any place.How could I make this work?
Thanks in advance.