Problem/Motivation
Based on a similar approach already implemented in jsonapi_include, make use of jsonapi_auto_include query parameter optional for jsonapi_auto_include module also.
Proposed resolution
Add a flag to opt-in for using ?jsonapi_auto_include=1 query parameter.
- If flag is disabled, all relationships will be included in JSON:API response.
- If flag is enabled, relationships will be included only when url has ?jsonapi_auto_include=1

| Comment | File | Size | Author |
|---|---|---|---|
| jsonapi_auto_include_configuration.jpg | 67.85 KB | sumit saini |
Issue fork jsonapi_auto_include-3475898
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
sumit saini commentedAdded required changes. MR is ready to review.
Comment #4
harsh commentedReviewed and tested the feature, looks good to me. Moving it to RTBC.