You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***type**: A _string_ or a _function_`function(relationshipData, data) { ... }` for the type to use for serializing the relationship (type need to be register).
46
46
***alternativeKey** (optional): An alternative key (string or path) to use if relationship key not exist (example: 'author_id' as an alternative key for 'author' relationship). See [issue #12](https://github.com/danivek/json-api-serializer/issues/12).
47
47
***schema** (optional): A custom schema for serializing the relationship. If no schema define, it use the default one.
48
+
***data** (optional): A _function_`function(data) { ... }` returns the data to serialize for the relationship.
48
49
***links** (optional): Describes the links for the relationship. It can be:
49
50
* An _object_ (values can be string or function).
50
51
* A _function_ with one argument `function(data) { ... }` or with two arguments `function(data, extraData) { ... }`
0 commit comments