I got the following error: `node_type` is not a valid relationship field name. Possible values: menu_link, field_content.
I first started to add node_type in the "exclude invalid or reserved fields" but it is not future proof. I had to do the same thing for paragraph_type, media_type, etc.
Before invoking the recursive method, we should filter the $related_resource_types to only keep the enabled ones.
Issue fork jsonapi_auto_include-3580999
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
vbouchetPlease find a merge request fixing the issue.
For each ResourceTypeRelationship field (basically reference field), it now checks what entity_type + bundle can be referenced and remove the ones which are not enabled in jsonapi_extras. If jsonapi_extras is not enabled, it does not filter anything.