Skip to content

BYE not working with MongoDB #168

Answered by MrEngineerET
MrEngineerET asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, the issue was from my CRUD implementation.
Earlier my schema for opponents was

opponent1: {
          id: Number,
          position: Number,
          score: Number,
          result: { type: String, enum: ["win", "loss"] },
        },

Then after updating my schema to support a null value, it works

 opponent1: {
         type: Object,
         default: null,
         id: Number,
         position: Number,
         score: Number,
         result: { type: String, enum: ["win", "loss"] },
       },

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@MrEngineerET
Comment options

Comment options

You must be logged in to vote
1 reply
@Drarig29
Comment options

Answer selected by MrEngineerET
Comment options

You must be logged in to vote
2 replies
@Drarig29
Comment options

@Drarig29
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants