Question: I have a lot of graphml files and I'm trying to create separate neo4j database using each file. 

Right now I'm using Gephi to export graphml to neo4j database but that it would take me to much time for so many files.

I've found this `import-graphml [-i in.xml] [-r REL_TYPE] [-b 20000] [-c] [-t]`

Is it possible somehow to import this using Python and then export complete neo4j database?

Answer: 
For projections you could use the **[`native()`](http://sailsjs.org/documentation/reference/waterline-orm/models/native)** method that has direct access to the mongo driver:

```
var criteria = { id: libraryId },
    projection = { latitude: 1, longitude: 1, name: 1, address: 1, image: 1 };
// Grab an instance of the mongo-driver
Library.native(function(err, collection) {        
    if (err) return res.serverError(err);

    // Execute any query that works with the mongo js driver
    collection.findOne(criteria, projection).exec(function (err, libObj) {
        console.log(libObj);
    });
});

```

-- **UPDATE** --

Another option is to use the **[`find()`](http://sailsjs.org/documentation/reference/waterline-orm/models/find)** method which can accept the criteria and projection documents as parameters and append **[`limit(1)`](http://sailsjs.org/documentation/reference/waterline-orm/queries/limit)** to return just one document. For the projection object you would need to use the `select` key that holds an array of the projection fields:

```
var criteria = { _id: Library.mongo.objectId(libraryId) },
    projection = { select: [ "latitude", "longitude", "name", "address", "image" ] };

Library.find(criteria, projection).limit(1).exec(function (err, res) {
    var libObj = res[0];
    console.log(libObj );
});

```
@chridam Thanks a lot for your answer. I changed something and the script working well

```
var criteria = { _id: Library.mongo.objectId(libraryId) },
    projection = { latitude: 1, longitude: 1, name: 1, address: 1, image: 1 };

// Grab an instance of the mongo-driver
Library.native(function(err, collection) {        
    if (err) return res.serverError(err);

    // Execute any query that works with the mongo js driver
    collection.findOne(criteria, projection, function (err, libObj) {
        sails.log(libObj);
        sails.log(err);
    });
});

```