Giter Club home page Giter Club logo

Comments (3)

dvergnes avatar dvergnes commented on July 30, 2024 9

Thanks for your post. Actually, using explanation provided in JIRA issue, I succeed to insert date. The final file is:
{
"todo":[
{
"_class":"experiments.entity.Todo",
"_id":1,
"completed":false,
"content":"test",
"order":1,
"title":"title",
"username":"username",
"lastUpdate":{ "$date" : "2013-02-07T09:09:09.212Z"}
}
]
}

It seems to me you can close this issue without trouble but I prefer to let you do so.

from nosql-unit.

lordofthejars avatar lordofthejars commented on July 30, 2024 1

Hello, well there is a problem with this kind of data, but is not related to NoSQLUnit but java mongodb driver, if you look next issue JIRA it talks about similar problem but in queries. I think that should work with insertion too. Moreover in stackoverflow it is explained that ISODate is simply a helper class that wraps a Javascript date object.
As discussed in this forum (http://grokbase.com/t/gg/mongodb-user/129ywkf8sq/java-date) you can use Date to retrieve back the date.

I will write a unit test about this to validate all this information I have provided, and depending on results I will close the issue or fix the problem. But as you noted in description it seems more a problem with json file than NoSQLUnit.

Thank you very much for using NoSQLUnit, for any question , problem, ... do not hesitate to contact me.
Alex.

from nosql-unit.

lordofthejars avatar lordofthejars commented on July 30, 2024

Good, thank you very much, I will update documentation by providing an example for ISODates.

from nosql-unit.

Related Issues (20)

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.