Closed patrickcate closed 3 years ago
Thanks for the suggestion @patrickcate ,
we now have addCustomParam
method in release 1.2.0.
apiParams
// To add `foo=bar` to the query.
.addCustomParam({foo: 'bar'})
// To add `foo[bar]=baz` to the query.
.addCustomParam({ foo: {bar: 'baz'}})
// To add `bar[0]=a&bar[1]=b&bar[2]=c` to the query.
.addCustomParam({ bar: ['a', 'b', 'c']})
It would be great if there was a method that allowed for extra arbitrary query strings to be added to the query. The https://www.drupal.org/project/jsonapi_include module requires
jsonapi_include=1
be added to the url for instance.Something like:
would easily enable support for this.