Giter Site home page Giter Site logo

sprest's People

Contributors

exnexu avatar isharamet avatar markschaake avatar mruflin 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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

sprest's Issues

ISODate type

I have ISODate type dates in mongo database and I tried using DateTime for case class type variables but then I try to load the data in browser it is empty not even an empty array. I tried using Long, Int or String types to no result.

Sprest-ReactiveMongo Dependency Broken

The dependency is broken. I tried to compile it in sbt, not successful. The warning is here:

[warn] ==== sprest snapshots: tried
[warn] http://markschaake.github.io/snapshots/org/reactivemongo/reactivemongo_2.10/0.10.5.akka23-SNAPSHOT/reactivemongo_2.10-0.10.5.akka23-SNAPSHOT.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.reactivemongo#reactivemongo_2.10;0.10.5.akka23-SNAPSHOT: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: unresolved dependency: org.reactivemongo#reactivemongo_2.10;0.10.5.akka23-SNAPSHOT: not found

Example type error

Hi,

example throws incompatible type on sbt run:

Error:(12, 7) overriding method id in trait Model of type => String;
 variable id has incompatible type
  var id: Option[String] = None) extends Model[String]
      ^

How to update only selected fields using a model class

I'm trying to update a model as follows:


val event = Event(id = Option(id), title = title, description = description, customer_id = customer_id, updated_at = new Date().getTime)

val future = Events.update(event)


What would be a good approach to update only selected fields?

Thanks

BSONObjectID vs String ids

By default Mongo handles ids in ObjectID format which takes less space and is faster to process but in the current sprest id type is string and if in database ids are in ObjectID type sprest returns empty variables.

Nested models

Hi, this is not an issue but need an advice on how to create a nested model in sprest with the following json:

{
  "contacts":[
    {
      "id": 1,
      "name": "Alice",
      "items": [
        {
          "id": "a",
          "type": "phone number",
          "value": "555-1234-1234"
        },
        {
          "id": "b",
          "type": "email",
          "value": "[email protected]"
        }
      ]
    }
  ]
}

I am new to sprest, spray and scala. Currently I am following examples from ExNexu...

Support Scala 2.11

I've just seen that there are no packages for Scala 2.11 yet so I started to play around with the build files and it seemed to be an easy integration except for the Slick dependency ( slick/slick#839 ). After upgrading Slick to 2.1, it should be easy to support Scala 2.11 in Sprest.

Reactivemongo example update to 0.3.2

I need mongo document update functionality and it is added only in 0.3.2 but since examples are not backwards compatible it takes more time to figure thing out.

Enum example

I might be wrong, but I see a custom enumeration implementation, Enum.
Adding some Enum based property on a class (like ToDo) inside an example could be a nice idea.

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.