Coder Social home page Coder Social logo

mongorpc's Introduction

mongorpc

MongoDB + gRPC = mongorpc

mongorpc is a server that can be used to communicate with MongoDB using gRPC. mongorpc can be used with microservices, or from any mobile or web applications. you can extend mongorpc with custom interceptors to add authentication, logging, casbin, tracing, etc.

mongorpc has many client libraries for different langauges and platforms. that provides a ORM like interface to interact with MongoDB.

mongorpc is in really early development, and things may change before we release version 1.0.

Clients

const client = new MongoRPC("http://localhost:8080");

const document = await client
  .database("sample_mflix")
  .collection("movies")
  .document("573a13b0f29313caabd35231")
  .get();

console.log(document);
import 'package:mongorpc/mongorpc.dart';

Future<void> main(List<String> args) async {
  var options = ChannelOptions(credentials: ChannelCredentials.insecure());
  var client = await mongorpc("localhost", port: 1203, options: options);

  var database = client.database("sample_mflix");
  var collection = database.collection("movies");

  var documents = await collection
      .documents()
      .limit(10)
      .sort(by: "title")
      .where("title", isEqualTo: "Blacksmith Scene")
      .get();
  print(documents);
}

Deploy Run on Google Cloud

mongorpc's People

Contributors

deepsource-autofix[bot] avatar deepsourcebot avatar satishbabariya avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

nomuq

mongorpc's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.