DevArticles.In
  • Home
  • Hindi to Unicode
  • PHP Debug
  • CakePHP Captcha
  • How-To
  • About
  • Contact

Category: Mongodb

Searching array elements with regex in Mongodb collection

July 24, 2020 Arvind KumarMongodbLeave a Comment on Searching array elements with regex in Mongodb collection

Mongodb works Javascript way. Every mongodb collection is a JSON object containing all kinds of Javascript objects such as boolean, arrays, objects and strings. In this example I am saving two different fields to my categories collection. searchableName – for…

Read More→

Export and Import Mongodb commands

August 24, 2019September 18, 2019 Arvind KumarMongodbLeave a Comment on Export and Import Mongodb commands

To restore earlier database mongorestore -d dbname -c users C:/mypath/to/old/dbname To export a collection mongoexport –db envyd –collection categories –out users_remote.json To import a collection mongoimport –db envyd –collection posts –file posts.json To Update Single or Multiple records Update single…

Read More→

How to get records filtered by a condition of another table field through join in Mongodb

May 22, 2019May 22, 2019 Arvind KumarMongodbLeave a Comment on How to get records filtered by a condition of another table field through join in Mongodb

I have two tables, posts and categories. In posts table there is a field categoryId. I want that only those posts are shown category of which is in enabled state, i.e. for which categories.enabled = true.

Recent Posts

  • Database rollback transactions in Laravel
  • Automatic Deployment of your Git Push to Remote Server
  • CSV Content Validation with FormRequest Rules in Laravel
  • Using Unique Validation Rule in Form Request in Laravel
  • React Table Server Side Pagination with Sorting and Search Filters
Copyright © All rights reserved.
Blog Kit by WP Charms