EntityQuery.withParameters to inject variables into resource name
Much like it injects querystring parameters to the request using the object passed to it - it would be nice if it could first look for replacement tokens in the resourceName property of the query.
for example:
var qry = breeze.EntityQuery
.from("Studies/{StudyID}/Sites/{SiteID}/People")
.withParameters({StudyID: 123, SiteID: 555});
instead, currently, I am doing this:
var resourceName = String.format("Studies/{0}/Sites/{1}/{2}", pStudyID, pSiteID, referralName.APIName);
var query = breeze.EntityQuery.from(resourceName);
....
