codeswarm / sails-couchdb-orm

CouchDB Adapter for the Sails.js ORM Framework, Waterline
36 stars 20 forks source link

Model.create convert array data to string #6

Closed terryx closed 10 years ago

terryx commented 10 years ago

I have this data var location = [1.2', '1.4'];

but upon creation and the result returned was { location: "1.2,1.4" } the document stored in the db should be array form

terryx commented 10 years ago

my mistake , forgot to change Model.js attribute from "string" to "array" lol