anchor.diff:  [source,bash]
   ----
   $ grails generate-rx-controller example.Book
  -----+----
  
positive.code: ----
  dependencies {
      ...
      compile 'org.grails.plugins:rx-mongodb:6.0.0.M2'
  }
  ----
  
  
negative.code: ----
  dependencies {
      ...
      compile 'org.grails.plugins:rxjava"
  }
  ----
  
  If you wish to use RxJava 2.x then you can declare the `rxjava2` dependency:
  
  [source,groovy,subs="attributes"]
  .build.gradle
  ----
  dependencies {
      ...
      compile 'org.grails.plugins:rxjava2:{version}'
  }
  ----
  
  NOTE: RxGORM does not currently support RxJava 2.x due to the fact that the MongoDB driver only supports RxJava 1.x. However the remaining features such as server sent events work with both RxJava and RxJava 2.x.
  
  
  You then may want to include an implementation of RxGORM, for the examples in this documentation we will use RxGORM for MongoDB:
  
  