[17:42:16] <GothAlice> Like, asking because I legitimately do not know what you are referring to.
[17:44:22] <leatherface416> I’m using Mongoose Schema for the insert. If it’s a new field, it’s added to the end of all existing fields.
[17:45:22] <leatherface416> Is it possible to move it? For example, _id, name, email, body, fromEmail
[17:45:38] <leatherface416> Say I want fromEmail next to email in the schema
[17:45:48] <leatherface416> pardon me if my terminiology is off
[17:46:57] <GothAlice> leatherface416: If using a DAO layer, then the order of definition is essentially irrelevant. You should be able to take a given schema, and shuffle the source code presented order of the “field” definitions between executions with zero impact.
[17:47:51] <GothAlice> Additionally, many languages do not preserve dictionary / associative array ordering, meaning you load a record from MongoDB then save it, the field order can be essentially shuffled. The actual defined order in-record of any two fields should be (must be, for reliability) irrelevant to your application.
[17:48:32] <GothAlice> (DAO = Data Access Object, e.g. Mongoose, MongoEngine, Marrow Mongo, PyModm, … etc. ;)
[17:48:34] <leatherface416> True, it’s not impacting anything. I’m using Compass and I just don’t feel like scrolling to the right to see the latest update during dev.
[17:48:50] <leatherface416> haha, thanks. was about to search that
[17:50:48] <GothAlice> DAO is the general term for database access and schema definition systems, whereas ORM (Object Relational Mapper) and ODM (Object Document Mapper) relate specifically to the mapping of behind-the-scenes data structures to in-language data structures for each type of database. (“Active Record” is above and beyond just mapping the fields, making the records self-aware. I.e. able to save themselves
[17:55:41] <GothAlice> JIRA can take its text formatting and shove it. Yikes. Only text markup I’ve seen where preformatted code blocks don’t automatically disable other replacements. {{__str__}} — I hope you like your str monospaced and italic. {{\_\_str\_\_}} ← ಥ_ಥ