You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description / Steps to reproduce / Feature proposal
I have a Publication model that basically describes an entry in a bibliography. I'd like to store the author names for each publication as an array of strings:
I'm using MongoDB as a data source and the data is not being stored as an array but rather as a single comma-separated string. I've found that if I comment out the authors property in the model, POST a new publication, then turn the authors property back on any subsequent GET /publications will return objects where the authors property is an array.
Expected Behavior
I expect the @property.array(String) to properly insert data as an array in both the database and in responses from the REST API.
Description / Steps to reproduce / Feature proposal
I have a
Publication
model that basically describes an entry in a bibliography. I'd like to store the author names for each publication as an array of strings:and a controller like this:
Current Behavior
I'm using MongoDB as a data source and the data is not being stored as an array but rather as a single comma-separated string. I've found that if I comment out the
authors
property in the model,POST
a new publication, then turn theauthors
property back on any subsequentGET /publications
will return objects where theauthors
property is an array.Expected Behavior
I expect the
@property.array(String)
to properly insert data as an array in both the database and in responses from the REST API.See Reporting Issues for more tips on writing good issues
The text was updated successfully, but these errors were encountered: