This is ancient, but back in the 0.8 CB days, I put together a sample todo 
app with mongodb that was functional.

Code:
  
https://github.com/imperialwicket/chicagoboss_mongodb_app/blob/master/src/controller/chicagoboss_mongodb_app_todo_controller.erl#L5

I keep meaning to update some of this, but there's a pre-built Amazon ami 
that should launch with a working version of the todo app against 
PostgreSQL, MySQL, and MongoDB here: http://imperialwicket.com/the-mob/ . I 
haven't tested that in ages, but if you want to glance at something that 
should be working against MongoDB out of the box, that's one example (I 
think there are a few others on GH).

At a glance, I managed the columns differently, though I don't see that as 
an immediate issue. If you can post a little more detail, maybe we can 
troubleshoot more effectively. Also remember that if you reference the code 
linked above, it was working against very old CB and boss_db 
commits/releases. I think some functions have changed since then.

This is all to say, if it's not working then it's a regression, because it 
used to work properly.

-- Nicholas

On Thursday, November 20, 2014 8:32:14 AM UTC-7, ENTR0PY wrote:
>
> As far as you know , am i using it correctly ? based on what i have said 
> so far......
> As for mongo i understand
>
> On Wednesday, November 19, 2014 10:35:28 PM UTC-4, ENTR0PY wrote:
>>
>> hello i have a table named *rating*
>> with the columns :
>>   _id
>>  rating
>>
>>   my model is below , but when i do boss_db:find(rating,[]).
>> it retuns an empty list []
>>
>> for completeness the table has 2 records
>>
>> -module(rating , [Id , Rating])*.
>> *-table("rating")*.
>> * -columns([{id , "id"} , {rating , "rating"}]).-compile(export_all)
>>
>>
>> *.*
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/3c06a0c7-9aca-4c25-8297-460701b4a200%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to