-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested collections control #79
Comments
kind-of, maybe covered by partial resources? |
yes @jbjonesjr ... the partial resources section is the equiv of field limiting operation (so that an integrating app can pair down the data being returned)... granted that's mostly for limiting the fields of the root resource. In the current design, the |
opps, looking at this again, I was probably speaking of In the example: ...
"coverArt": "https://ia800500.us.archive.org/2/items/mbid-6282e607-18b3-39c2-822b-b8d7bc00c343/mbid-6282e607-18b3-39c2-822b-b8d7bc00c343-1132379641_thumb500.jpg",
"releasedAt": "1981-11-23",
"artist": {
"id": "247",
"href": "/artists/247",
"name": "AC/DC"
},
"songs": {
"href": "/albums/1/songs",
"totalCount": 10
}
...
|
@jbjonesjr, when including a |
Thinking about this from a relational DB perspective, when the main object/data model has the Foreign Key to the other object, it seems a shame to force hydration (or removal completely). This may be beyond the scope of this document, which is fine, but in previous API creation I ended up with many permutations of the same "object", one with Just my 2 cents. |
When retrieving items that have a
To-Many
relationship, it would be nice to have an option that can control the specific hydration of these items to help contain the cost of unnecessary data access.There are times where a full hydrated resource will be needed and used, and others where that endpoint just makes the most sense, but the actual data is irrelevant. Supporting the ability to reduce these requests is helpful in controlling processing cost.
The text was updated successfully, but these errors were encountered: