f3ath/json-api-dart

UrlDesign should support "include"

f3ath opened this issue · 1 comments

f3ath commented

Original post by @eskalera: #47 (comment)

Also, I can't find a way to build the query with an include of my choice other than

urlDesign.collection('objects').replace(queryParameters: {'include': 'relatedObject'});

f3ath commented

Released in 3.0.0. Query parameters are now supported in all fetching methods of the client.

Example:

await client.fetchResource(uri, parameters: Include(['models']));