How can we improve Breeze.js?

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);
....

1 vote
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Diego H. Bustamante shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base