This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.helpers; | |
/* | |
* Copyright 2008-present MongoDB, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:orphan: | |
=========================== | |
Code Block Indentation Test | |
=========================== | |
Test page to observe the behavior of two different indentation levels for | |
the ``code-block`` component. | |
First example (``java`` syntax highlighting and line ``6`` emphasized): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:( function() { new Promise(setQuery => { var input = window.prompt('JIRA ticket:'); if (input) setQuery(input); }).then(query => { window.open('https://jira.mongodb.org/browse/' + query);});})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Before: | |
{"_id":"633c679cfb1175cf38b5886e","name":"testDoc","items":[{"id":"a1","description":{"color":"red","size":"S"}},{"id":"a2","description":{"color":"blue","size":"L"}},{"id":"a3","description":{"color":"blue","size":"S"}}]} | |
After: | |
{"_id":"633c679cfb1175cf38b5886e","name":"testDoc","items":[{"id":"a1","description":{"color":"red","size":"S"}},{"id":"a2","description":{"color":"white","size":"L"}},{"id":"a3","description":{"color":"blue","size":"S"}}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const { MongoClient } = require("mongodb"); | |
// Replace the uri string with your connection string. | |
const uri = | |
process.env.PERSONAL_MONGODB_URI; | |
const client = new MongoClient(uri); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
_id: ObjectId("61410f680eb2cbf1ab341b31"), | |
repoName: 'docs-golang', | |
branches: [ | |
{ | |
name: 'master', | |
publishOriginalBranchName: true, | |
active: true, | |
aliases: [ 'upcoming' ], | |
gitBranchName: 'master', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { MongoClient } from "mongodb"; | |
require('dotenv').config(); | |
const uri = (process.env.MONGODB_CONECTION_URI); | |
const client = new MongoClient(uri); | |
async function run() { | |
try { | |
await client.connect(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"language": "javascript", | |
"versions": [{ | |
"type": "tutorial", | |
"snippets": { | |
"id_1": " // TODO: initialize the user" | |
} | |
}, | |
{ | |
"type": "solution", |