These are chat archives for Automattic/mongoose

18th
Oct 2016
Listu
@Listu
Oct 18 2016 05:56
Hi there ! Is there a way to find a document in which I have an associative array by a key of this associative array ? Don't know if impossible or just miss something on google :3
Paul "Joey" Clark
@joeytwiddle
Oct 18 2016 09:00
@Listu perhaps $exists? (example)
eliecerthoms
@eliecerthoms
Oct 18 2016 11:20
This message was deleted
This message was deleted
How would you make a tag system for blog posts?
like this?
tags: {
    tag1: "...",
    tag2: "..."
}[...]
if I do it this way, I'd have to compute which tag goes where, and how many tag# there are
I'm sure there must be a better way for this, right??? Can't find anything on Google tho
Paul "Joey" Clark
@joeytwiddle
Oct 18 2016 15:56
This message was deleted
How about this @eliecerthoms ?
tags: ["software", "patents"]
eliecerthoms
@eliecerthoms
Oct 18 2016 21:55
cool! @joeytwiddle
maybe tell me a query for how to find it? :)
I'm not used to working with arrays