Author: admin

  • Python Numbers

    Summary: in this tutorial, you’ll learn about Python numbers and how to use them in programs. Python supports integers, floats, and complex numbers. This tutorial discusses only integers and floats. Integers The integers are numbers such as -1, 0, 1, 2, and 3, .. and they have type int. You can use Math operators like +, -, *, and /…

  • Python String

    Summary: in this tutorial, you’ll learn about Python string and its basic operations. Introduction to Python string A string is a series of characters. In Python, anything inside quotes is a string. And you can use either single or double quotes. For example: If a string contains a single quote, you should place it in…

  • Python Variables

    Summary: in this tutorial, you’ll learn about Python variables and how to use them effectively. What is a variable in Python When you develop a program, you need to manage values, a lot of them. To store values, you use variables. In Python, a variable is a label that you can assign a value to…

  • Python Syntax

    Summary: in this tutorial, you’ll learn about the basic Python syntax so that you can get started with the Python language quickly. Whitespace and indentation If you’ve been working in other programming languages such as Java, C#, or C/C++, you know that these languages use semicolons (;) to separate the statements. However, Python uses whitespace and indentation…

  • MongoDB Charts

    MongoDB Charts MongoDB Charts lets you visualize your data in a simple, intuitive way. MongoDB Charts Setup From the MongoDB Atlas dashboard, go to the Charts tab. If you’ve never used Charts before, click the Activate Now button. This will take about 1 minute to complete. You’ll see a new dashboard. Click the dashboard name to open it. Creating a…

  • MongoDB Node.js Database Interaction

    Node.js Database Interaction For this tutorial, we will use a MongoDB Atlas database. If you don’t already have a MongoDB Atlas account, you can create one for free at MongoDB Atlas. We will also use the “sample_mflix” database loaded from our sample data in the Intro to Aggregations section. MongoDB Node.js Driver Installation To use MongoDB with Node.js,…

  • MongoDB Drivers

    MongoDB Drivers The MongoDB Shell (mongosh) is great, but generally you will need to use MongoDB in your application. To do this, MongoDB has many language drivers. The language drivers allow you to interact with your MongoDB database using the methods you’ve learned so far in `mongosh` but directly in your application. These are the…

  • MongoDB Data API

    MongoDB Data API The MongoDB Data API can be used to query and update data in a MongoDB database without the need for language specific drivers. Language drivers should be used when possible, but the MongoDB Data API comes in handy when drivers are not available or drivers are overkill for the application. Read & Write with…

  • MongoDB Schema Validation

    Schema Validation By default MongoDB has a flexible schema. This means that there is no strict schema validation set up initially. Schema validation rules can be created in order to ensure that all documents a collection share a similar structure. Schema Validation MongoDB supports JSON Schema validation. The $jsonSchema operator allows us to define our document structure. Example This…

  • Indexing & Search

    Indexing & Search MongoDB Atlas comes with a full-text search engine that can be used to search for documents in a collection. Atlas Search is powered by Apache Lucene. Creating an Index We’ll use the Atlas dashboard to create an index on the “sample_mflix” database from the sample data that we loaded in the Intro to Aggregations section.…