Message from discussion
set the default safe variable on the driver Db
Received: by 10.224.186.20 with SMTP id cq20mr6212033qab.8.1350925761971;
Mon, 22 Oct 2012 10:09:21 -0700 (PDT)
X-BeenThere: mongodb-user@googlegroups.com
Received: by 10.229.178.10 with SMTP id bk10ls4236366qcb.3.gmail; Mon, 22 Oct
2012 10:09:06 -0700 (PDT)
Received: by 10.59.5.193 with SMTP id co1mr3493200ved.37.1350925745409;
Mon, 22 Oct 2012 10:09:05 -0700 (PDT)
Received: by 10.59.5.193 with SMTP id co1mr3493199ved.37.1350925745399;
Mon, 22 Oct 2012 10:09:05 -0700 (PDT)
Return-Path: <aaron.heckm...@gmail.com>
Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175])
by gmr-mx.google.com with ESMTPS id dj17si2511681vdb.1.2012.10.22.10.09.04
(version=TLSv1/SSLv3 cipher=OTHER);
Mon, 22 Oct 2012 10:09:04 -0700 (PDT)
Received-SPF: pass (google.com: domain of aaron.heckm...@gmail.com designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of aaron.heckm...@gmail.com designates 209.85.220.175 as permitted sender) smtp.mail=aaron.heckm...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-vc0-f175.google.com with SMTP id p1so3112308vcq.6
for <mongodb-user@googlegroups.com>; Mon, 22 Oct 2012 10:09:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:content-type;
bh=2iiWKMK0lo8xgC5688/OAAsAWXOV7o2Yzr7WkBRDIf8=;
b=0Rcdnd26Rb81omX2jq0qKOyPfziRYaXOJYxasFrQT+bwPP6P4jGL8PgBwBBk13Q+FR
RFlwAXqLaOWAuUiEsOggaNlRT8SjEEWJkYZmK5AyE8eZksrhLbtPB1VUaJYfHKawbOTE
Tp/1KewXQL4VBxzqkrxafU2fSbHpvQ+w59cnU0msfDN0YFqneTC0e0pKGLtBCoRtU7w8
i/NDmTdP1hv6TCTG72u5dgaRcbUHm50zAteq1pKvfnE+z68noisV3XYCuKg7tUElVz+b
hSsydVb7R78cn7St45d58eZpGnVsQYjc5xAevC/g7/mmJPngKlXdT1J1weHEFKaIYaR1
EGDQ==
Received: by 10.52.24.142 with SMTP id u14mr12804798vdf.110.1350925744277;
Mon, 22 Oct 2012 10:09:04 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.58.182.34 with HTTP; Mon, 22 Oct 2012 10:08:43 -0700 (PDT)
In-Reply-To: <f995aed8-f2d7-44bf-9b44-69eca3934a90@googlegroups.com>
References: <f995aed8-f2d7-44bf-9b44-69eca3934a90@googlegroups.com>
From: Aaron Heckmann <aaron.heckm...@gmail.com>
Date: Mon, 22 Oct 2012 10:08:43 -0700
Message-ID: <CACgri=uWuvjcVeC63QjCwnm0dHwgDOwhaTmPrzOUokOn1oa...@mail.gmail.com>
Subject: Re: [mongodb-user] set the default safe variable on the driver Db
To: mongodb-user@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1
You didn't do anything wrong. Which mongoose version?
On Mon, Oct 22, 2012 at 7:20 AM, mic0331 <mich...@aquamw.com> wrote:
> hello,
>
> since last update when i start node i have this message ;
>
> ========================================================================================
> = Please ensure that you set the default safe variable to one of the
> =
> = allowed values of [true | false | {j:true} | {w:n, wtimeout:n} |
> {fsync:true}] =
> = the default value is false which means the driver receives does not
> =
> = return the information of the success/error of the insert/update/remove
> =
> =
> =
> = ex: new Db(new Server('localhost', 27017), {safe:false})
> =
> =
> =
> = http://www.mongodb.org/display/DOCS/getLastError+Command
> =
> =
> =
> = The default of false will change to true in the near future
> =
> =
> =
> = This message will disappear when the default safe is set on the driver Db
> =
> ========================================================================================
>
> here is my config setup :
>
> module.exports = mongoose = require('mongoose');
> mongoose.connect('mongodb://localhost/mydb/?safe=true');
> module.exports = Schema = mongoose.Schema;
>
> Do I make something wrong ? How do I specify "safe=True" ?
>
> Thanks for letting me know.
>
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb
--
Aaron
@aaronheckmann