Skip to content

Commit

Permalink
connect to a mongodb cloud instance
Browse files Browse the repository at this point in the history
  • Loading branch information
jorishermans committed Jul 25, 2017
1 parent b137f54 commit e04ce20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/using-mongodb/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ module.exports = {
plugins: [
{
resolve: `gatsby-source-mongodb`,
options: { dbName: `cloud`, collection: `documents` },
options: { dbName: `cloud`, collection: `documents`,
server: { address: `ds143532.mlab.com`, port: 43532 },
auth: { user: `admin`, password: `12345` }
},
},
`gatsby-plugin-react-helmet`,
],
Expand Down

0 comments on commit e04ce20

Please sign in to comment.