Giter Site home page Giter Site logo

moongoon's People

Contributors

atlantis avatar elbywan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moongoon's Issues

Multi DB?

Hello,

Does Mongoon support multi DB connection?

timestamps helper

Sorry if this is kind of a dumb question...but I'm accustomed to including timestamps in a Mongoid class definition to automatically generate created_at and updated_at fields.

Is there an equivalent in Mongoon?

Thanks!

Marc

Failed to install moongoon

Hello

Dear, Maintainer.
I had try crystal and use moongoon to work with mongodb but when i run shards install the git log causing error like this :

Failed git log -n 1 196d1e9830dad9ecd1aef758da41fc712cb33c86 (). Maybe a commit, branch or file doesn't exist?

How can i resolve this?
Thank you

M1 issue

Hi,

When I attempt to include moongoon on an M1 Mac running 11.5.2 I get the attached error.
error.txt

Same code runs fine on Ubuntu. I've tried reinstalling gmp through Brew and am running the latest version.

Same code without Moongoon compiles with no issue.

Thanks!

Marc

Mongo 4 support?

Hello,

Does Moongoon support Mongo version 4 (latest is 4.4.6)?

Feature request: consider only updating touched fields

I'm not sure how tenable this is, but my documents tend to be larger/more complex and update() currently sends the entire document over the wire to mongo... it would be great if when you set any of the properties the fact that that field was touched got recorded somehow and ONLY updated fields were pushed to mongo?

Please close this issue if you think it's not feasible or a bad idea... I can't think how to do it using propertys, and moving to something like a field macro instead with custom "dirty" logic would be a large breaking change. Something to mull over, thanks!

aggregation issue causing an exception

Hi,

Firstly, thanks for all the work on this project. We're looking at transitioning to Crystal for some work, and this shard is making that possible.

I seem to have run into an aggregation issue though.

I have the following pipeline defined:

  aggregation_pipeline(
    {
      "$sort": {"md": 1}
    },
    { 
      "$group": { 
          "_id": {
            "md": "$md"
          },
          "data": { 
              "$addToSet": "$$ROOT"
          }
      }
    }
  )

This results in _id being an Int rather than an ObjectId. The query works fine in the MongoDB shell. Unfortunately it generates an exception:

Unhandled exception: Unable to deserialize key (_id) having value (BSON(@DaTa=Bytes[13, 0, 0, 0, 16, 109, 100, 0, 212, 7, 241, 95, 0])) and of type (BSON) belonging to type 'Fives'. Expected type(s) '[BSON::ObjectId]'. (Exception)

Any idea what I've done wrong?

Thanks,
Mark

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.