Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Quick fix for outdated client doc still referring to result.object #846

Merged
merged 1 commit into from
Mar 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ client.search('o=example', opts, (err, res) => {
console.log('searchRequest: ', searchRequest.messageId);
});
res.on('searchEntry', (entry) => {
console.log('entry: ' + JSON.stringify(entry.object));
console.log('entry: ' + JSON.stringify(entry.pojo));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good according to the example. It's just trying to print out a JSON representation of the full search entry object. If the example were to be reworked to show how to access the attributes, that would be entry.attributes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know! I'll try it out in my project.

});
res.on('searchReference', (referral) => {
console.log('referral: ' + referral.uris.join());
Expand Down