Comments (8)
this is all it says in the docs lol
from capstone-project.
Lame. Is the articleSchema working?
from capstone-project.
yea i think so, I'm able to create articles and it all appears correct in the back end. The only thing is I can't 'require' anything
from capstone-project.
Can't require anything?
from capstone-project.
I can't require things like minimum length of any input
from capstone-project.
Is this blocking you? Have you met requirements? This seems like a nice-to-have. It doesn't mean I won't help you, but I want to make sure you're on track. Do you feel comfortable you've met reqs?
from capstone-project.
No this isn't blocking me, I think I've met requirements otherwise
from capstone-project.
Should it be minLength
or min
?
var breakfastSchema = new Schema({
eggs: {
type: Number,
min: [6, 'Too few eggs'],
max: 12
},
bacon: {
type: Number,
required: [true, 'Why no bacon?']
},
drink: {
type: String,
enum: ['Coffee', 'Tea'],
required: function() {
return this.bacon > 3;
}
}
});
http://mongoosejs.com/docs/validation.html
from capstone-project.
Related Issues (20)
- Ember: What to do with unused routes HOT 2
- displaying lift data on routine component HOT 16
- deployment 400 bad request error HOT 3
- Each within each handlebars file HOT 4
- Deployment issues on Redeployment. HOT 2
- Problem with deployment HOT 4
- Last step before redeployment HOT 10
- branch I just pushed is not showing up on github HOT 1
- db: seed doesn't seem to have worked HOT 1
- Ember: clear form on view
- Broke deployment HOT 3
- Trying to Bulk Load Data (CSV) to Heroku HOT 2
- Can't use any Ember addons in my project HOT 1
- 1:1 REQUEST
- No 'Access-Control-Allow-Origin' issue. Cannot wire React App to Rails API HOT 1
- Issue in other queue
- One on One Request
- Hi frnds i am new lessoner in react. i have some problem in created signin and registration form plz give any idea or solve the problem
- Rails - Account - Migration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capstone-project.