On Sun, Aug 6, 2017 at 3:49 PM, Cecil McGregor <trailingd...@gmail.com> wrote: > The output is as expected as well as the db validity: > (This was performed after running db.dropDatabase() ) > Welcome to DrRacket, version 6.9 [3m]. > Language: racket, with debugging. > '#("Can't wait!" "Another blog?") >> (mongo-db? d) > #t >> (mongo-db-collections d) > '() <== Should show "posts" as a collection >> >> (mongo-db-valid-collection? d "posts") > #t <== Internally it know "posts" exists > > The mongo-db-collection should definitely show "posts" > as a collection. Running the mongo shell shows post: > > use awesome-dot-com > switched to db awesome-dot-com > awesome-dot-com> show collections > posts <=== As expected
mongo-db-collections is getting this information from <database>.system.namespaces which has been deprecated since MongoDB 3.0 > A few other calls don't quite seem to work either. Which ones? > My question: > > This code is old and written for Mongo 1.3. > Does it work with the current 3.2.15 version? > (Apparently not. Am I wasting my time or should I be > prepared to start hacking an upgrade?) It works, but anything that MongoDB has broken backwards compatibility with in the API won't work. I did a brief perusal of the docs and it doesn't appear that any essential features are broken. It seems like they just changed how some reflection happens. > Is anyone using this 2011 code? Yup > Does better documentation exist anywhere? (I can't find it > and I confess the current docs leave much to be desired.) The documentation is here: https://docs.racket-lang.org/mongodb/index.html I expect you will mainly care about the basic operations -- https://docs.racket-lang.org/mongodb/Basic_Operations.html -- what is something you wish it contained? It is extensive and documents everything that is supported. (Although, of course, you have to decide how you want to use it.) Jay -- -=[ Jay McCarthy http://jeapostrophe.github.io ]=- -=[ Associate Professor PLT @ CS @ UMass Lowell ]=- -=[ Moses 1:33: And worlds without number have I created; ]=- -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.