Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
set the default safe variable on the driver Db
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mic0331  
View profile  
 More options Oct 22 2012, 10:20 am
From: mic0331 <mich...@aquamw.com>
Date: Mon, 22 Oct 2012 07:20:09 -0700 (PDT)
Local: Mon, Oct 22 2012 10:20 am
Subject: set the default safe variable on the driver Db

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gianfranco  
View profile  
 More options Oct 22 2012, 11:46 am
From: Gianfranco <gianfra...@10gen.com>
Date: Mon, 22 Oct 2012 08:46:26 -0700 (PDT)
Local: Mon, Oct 22 2012 11:46 am
Subject: Re: set the default safe variable on the driver Db

In Mongoose when you define the schema you add an option to set safe to
true:

   1. var safe = true;
   2. new Schema({ .. }, { safe: safe });

Here is the documentation you are looking for:
http://mongoosejs.com/docs/guide.html#safe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aaron Heckmann  
View profile  
 More options Oct 22 2012, 1:09 pm
From: Aaron Heckmann <aaron.heckm...@gmail.com>
Date: Mon, 22 Oct 2012 10:08:43 -0700
Local: Mon, Oct 22 2012 1:08 pm
Subject: Re: [mongodb-user] set the default safe variable on the driver Db
You didn't do anything wrong. Which mongoose version?

--
Aaron
@aaronheckmann

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mic0331  
View profile  
 More options Oct 22 2012, 3:01 pm
From: mic0331 <mic0...@gmail.com>
Date: Mon, 22 Oct 2012 12:01:10 -0700 (PDT)
Local: Mon, Oct 22 2012 3:01 pm
Subject: Re: [mongodb-user] set the default safe variable on the driver Db

Im using mongoose 3.3.1
Any idea ?

Le lundi 22 octobre 2012 19:09:22 UTC+2, Aaron Heckmann a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mic0331  
View profile  
 More options Oct 27 2012, 12:22 pm
From: mic0331 <mich...@aquamw.com>
Date: Sat, 27 Oct 2012 09:22:55 -0700 (PDT)
Local: Sat, Oct 27 2012 12:22 pm
Subject: Re: [mongodb-user] set the default safe variable on the driver Db

Any idea on this subject?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lois  
View profile  
 More options Oct 27 2012, 4:54 pm
From: Lois <lois.desp...@gmail.com>
Date: Sat, 27 Oct 2012 13:54:26 -0700 (PDT)
Local: Sat, Oct 27 2012 4:54 pm
Subject: Re: [mongodb-user] set the default safe variable on the driver Db

Mongoose is based on the node-mongodb-native
driver: https://github.com/mongodb/node-mongodb-native

This is where the warning is coming from. It will be disabled when a new
version of the driver is released and they finally set safe: true by
default. Nothing you can do about it as far as I know.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »