You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 14, 2024. It is now read-only.
My question: under v3, is there any way to access a search result attribute directly (like under v2) so that I don't have to iterate through an array of attributes every time?
Abbreviated example of a search result, entry.object, from v2:
I think the comments in issue #841, which is linked from the v3 release notes, are pretty clear. But, to reiterate, the v2 .object property was not a direct access. It converted object to an object literal, i.e. serialized it to "JSON", and returned that object. So it was an expensive operation. This is exactly the way the .pojo accessor works.
We would definitely welcome a PR to @ldapjs/messages to provide utility accessors for the SearchEntry object. But as it stands, the best, most efficient, way to access the properties on this object are through the functional methods described in the above referenced issue.
I'm making the move from ldapjsv2 to v3, and I have read the release notes documentation:
My question: under v3, is there any way to access a search result attribute directly (like under v2) so that I don't have to iterate through an array of attributes every time?
Abbreviated example of a search result,
entry.object
, from v2:By contrast, abbreviated example of a search result,
entry.pojo
, from v3:Thanks for any help.
The text was updated successfully, but these errors were encountered: