Coder Social home page Coder Social logo

Comments (8)

jingrid avatar jingrid commented on August 12, 2024 2

screen shot 2017-08-31 at 12 27 52 pm

this is all it says in the docs lol

from capstone-project.

payne-chris-r avatar payne-chris-r commented on August 12, 2024

Lame. Is the articleSchema working?

from capstone-project.

jingrid avatar jingrid commented on August 12, 2024

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.

payne-chris-r avatar payne-chris-r commented on August 12, 2024

Can't require anything?

from capstone-project.

jingrid avatar jingrid commented on August 12, 2024

I can't require things like minimum length of any input

from capstone-project.

payne-chris-r avatar payne-chris-r commented on August 12, 2024

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.

jingrid avatar jingrid commented on August 12, 2024

No this isn't blocking me, I think I've met requirements otherwise

from capstone-project.

MicFin avatar MicFin commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.