jsonapi-fractal
jsonapi-fractal copied to clipboard
feat: add `typeKey`
Fix https://github.com/andersondanilo/jsonapi-fractal/issues/138. Variation of https://github.com/andersondanilo/jsonapi-fractal/pull/139 using typeKey instead of typeField
- Add new option
typeKey?: stringfor deserialization to include all JSON:API types during deserialization - During serialization, will check if
typeKeymatches the providedtype(but keeptypeKeyoptional) - Regenerate docs