score:2

Accepted answer
{
    resolve: `gatsby-source-mongodb`,
    options: {
        dbName: `your-database-name`,
        collection: [`yourCollection1`, `yourCollection2`],
        server: { address: 'cluster0-shard-00-01-XXXX.mongodb.net', port: 27017},
        auth: { user: 'yourUserName', password: 'yourPassword' },
        extraParams: { replicaSet: 'Cluster0-shard-0', ssl: true, authSource: `admin`, retryWrites: true }
    }      
}

score:1

query {
  allMongodbLocalDocuments {
    edges {
      node {
        id
        url
        name
      }
    }
  }
}

Related Query

More Query from same tag