Developer forum

Forum » Development » Naming of parameter in FacetGroupResult methods

Naming of parameter in FacetGroupResult methods

Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

I have been struggling with using the methods in FacetGroupResult until I realized that the parameter name "facetName" in more or less all methods in the class mean "queryparameter". So from my perspective it was a bit misleading, and maybe it will be a help for others to have this parameter renamed?

 

Best regards, Anders


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Anders

We cannot change the parameter as that would be breaking I think - if they use it like (var = FacetGroupResult(facetName: "asd",...)

But I have updated the docs so you should get the hint in intellisense.

BR Nicolai

 

You must be logged in to post in the forum