These are chat archives for canjs/canjs

24th
Jan 2015
Marshall Thompson
@marshallswain
Jan 24 2015 15:24
Anybody here who could answer a parseModels question for me?
Marshall Thompson
@marshallswain
Jan 24 2015 15:31
Lets do this conversation the async way. Here’s what I’m doing.
I’ve just implemented makeFindOne and makeFindAll for canjs-feathers. Everything works great, except for having to manually call models() and model() on lines 131 and 133, respectively.
Marshall Thompson
@marshallswain
Jan 24 2015 15:37
I know that in 2.1 these functions are deprecated, so I’d like to do this the parseModels way. It seems to me from reading the docs on parseModels that I shouldn’t have to do anything for the data coming back to be turned into model instances, but when I remove the data = models(data), I get raw objects.
What am I missing for parseModel(s) to work?