queryRecord (modelName, query) Promise
Defined in addon/-private/system/store.js:1151 Available since 1.13.0
This method makes a request for one record, where the id is not known beforehand (if the id is known, use findRecord instead). This method can be used when it is certain that the server will return a single object for the primary data. Let's assume our API provides an endpoint for the currently logged in user via: // GET /api/current_user
{
user: {
id: 1234,
username: 'admi