/mongo-php-snippets-for-vscode

snippets pack for work mongodb in php for vs code

mongo-php-snippets-for-vscode

snippets pack for work CRUD mongodb in php for vs code

Note

This extension has All the snippets you need to work CRUD operations mongodb in php for Vs Code editor.

Demo

Suport Language

  • PHP (.php)

Snippets

Below is a list of all available snippets and the triggers of each one. The means the TAB key.

Insert And Update

Trigger Content
i.o → insertOne mongo in php
i.m → insertMany mongo in php
u.o → updateOne mongo in php
u.m → updateMany mongo in php

Delete And Reapace

Trigger Content
d.o → deleteOne mongo in php
d.m → deleteMany mongo in php
r.o → ReplaceOne mongo in php

find

Trigger Content
f.o → findOne mongo in php
f.m → findMany mongo in php
f.ml → findMany by limit mongo in php
f.lsa → findMany by limit And ASC Sort mongo in php
f.lsd → findMany by limit And DESC Sort mongo in php
f.r → findMany and reqular expretion mongo in php

Other

Trigger Content
f.ag → aggregate mongo in php
nmdb → add new MongoDB and collection in 2 line in php
nmdbc → add new MongoDB and collection in 1 line in php
i.d → Inserting a Decimal128 in mongo php

For more information

Enjoy!