Closed jamesdixon closed 8 years ago
@chamini2 @ShadowManu would love your feedback on this.
Note that I haven't updated the README yet, but will do so after getting your feedback.
@chamini2 thanks for the thorough review. I just pushed a few fixes from above.
If you're good with the changes, LGTM 👍
1.0.0-beta.4 is live
This PR fixes #63 by allowing an
included
attribute to be specified as part of therelations
option. Previously, therelations
option was either a boolean or an array of strings. This has now been changed to either a boolean or an object containing options that determine how a relationship is processed.The array of relation names has now been moved into a
fields
property. Example:The new syntax also allows for an
included
option to determine whether the relation data is included as a compound document, which has been the default thus far. Settingincluded: false
will not include the actual relation data in the payload.Scenarios: