Groups
Sign in
Groups
Mongoose Node.JS ODM
Conversations
Labels
About
Send feedback
Help
Fixtures and mongoose-attachments (file uploads)
39 views
model
setter
virtual
Skip to first unread message
Leon Radley
unread,
Apr 29, 2013, 8:38:25 AM
4/29/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongoo...@googlegroups.com
Hi!
I'm using
https://github.com/firebaseco/mongoose-attachments
to have files attached to my models and would now like to load some fixtures using
https://github.com/powmedia/mongoose-fixtures
or alike.
It works great with plain json objects. But I'm unsure of how to in the easiest possible way also insert images.
My thought so far is maybe it's possible to do via a virtual setter, but that seems like a hack.
Has anyone done something like this?
Reply all
Reply to author
Forward
0 new messages