meta
bidva opened this issue · comments
Amir commented
How to add meta tag to collection ?
Jonathon Moore commented
Hey @bidva, it's been a minute since I've worked with the library, but if I recall correctly passing meta
to .serialize()
will simply pass it through to the output.
const data = {};
const meta = {};
const jsonapi = YourSerializer.serialize({ data, meta });
// meta === jsonapi.meta
Line 235 in 7e978fe