Closed sajov closed 8 years ago
sorry, yes exactly this one.
assert.equal(typeof user.fullName, 'function');
how that can be? does waterline wrap a result of one document as a model instance?
thanks
Yes, this is odd. Wrapping the document in a model instance is something waterline should take care of. Does your results list otherwise look correct if you log/inspect it? Does your adapter modify the waterline collection definition in any way? If the source of your adapter is on the web, I'd be happy to take a look.
ok, i will inspect the result. At the moment only 50% over all test passing. I will publish sails-solr in a few days. It would be great if you can have a look into that.
@sajov did you have any luck? What was the issue?
@devinivy yes, it was my fault. The Adapter did not handle solr response correct
@sajov what was missing in your adapter handler? I am having the same problem with my adapter
@sajov I'm also curious (I know it's been a while though!)
btw I went through the adapter list for the sails website this weekend, and I believe sails-solr was one of the ones I updated the info for. So should actually link to the right place now 👍 . Also, there are some changes to adapters for Sails v1 I'd like to get you up to speed on. Would you hit me up whenever you have some time? (http://twitter.com/mikermcneil)
what should an Adapter return in find method? My adapter return an Array and test failed. a look into other adapters does not makes that clear to me.
thanks