Skip to content

Instantly share code, notes, and snippets.

View thehme's full-sized avatar

Brenda thehme

  • New Jersey
View GitHub Profile

I am using mongoose 5.3.6 and I am trying to share a common set of schema attributes for a model question, then based on a discriminator, use a schema that adds to the base schema.

The following schema is the working schema, where all question models have the samea attributes:

var SurveyQuestion = new Schema({
        questionId: {type: Number, required: true},
        question: {type: String, required: true, index: true},
        ...
}, {_id: false, versionKey: false});
@thehme
thehme / sample.html
Created September 14, 2018 17:58
css issue with overflow and opacity
<!-- html on page looks something like this: -->
<div id="selectAdvancedFilters" class="panel bg_white boxShadow"> <!-- ELEMENT A -->
<div class="insidePanel bg--light-gray pa-all--m">
<div id="qSelection" class="dropDown left" style="width: 18%;">
<label for="selectQ" class="mid_gray pa-bottom--t">Items</label>
<select id="selectQ" class="dark-gray" style="width: 100%;">
<option value="all">all</option>
<option dpid="5b69eee0e3bad50c9233fa2e">q option 1</option>
<option dpid="5b69f1fde3bad50c9233fa35">q option 2</option>
@thehme
thehme / jitsuDeployOutput
Created November 1, 2014 02:14
error: Nodejitsu Error (401): Not Authorized
thehme:showtracker thehme$ jitsu deploy
info: Welcome to Nodejitsu
info: jitsu v0.14.0, node v0.10.32
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node server.js
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /showtracker/package.json
data: