From 5ca64c4c5c1baf2ba56dac495db4462c71c358e5 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Sun, 6 Nov 2011 14:27:53 -0800 Subject: [PATCH] 'operation' instead of 'type'. Include 'require' stmts to help --- docs/client.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/client.md b/docs/client.md index 4f5953f..fbbda2e 100644 --- a/docs/client.md +++ b/docs/client.md @@ -15,6 +15,7 @@ with LDAP. If you're not, read the [guide](http://ldapjs.org/guide.html) first. The code to create a new client looks like: + var ldap = require('ldapjs'); var client = ldap.createClient({ url: 'ldap://127.0.0.1:1389' }); @@ -143,8 +144,8 @@ pass in a single `Change` or an array of `Change` objects. Example: - var change = new Change({ - type: 'add', + var change = new ldap.Change({ + operation: 'add', modification: { pets: ['cat', 'dog'] }