We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example of a schema that isn't working...
const PolicySchema = new Schema({ _policy: { type: Schema.Types.ObjectId, ref: 'Policy' }, lowRange: { type: Number }, highRange: { type: Number }, }, { timestamps: true }); const QuoteSchema = new Schema({ _user: { type: Schema.Types.ObjectId, ref: 'User', required: true }, industry: { type: String, required: true }, state: { type: String, required: true }, policies: [PolicySchema], staff: { type: String, required: true }, yearsInBusiness: { type: String, required: true }, revenue: { type: String, required: true }, priorClaims: { type: Boolean, required: true } }, { timestamps: true });
The text was updated successfully, but these errors were encountered:
Patch for issue #7
be04439
As a temporary fix, add searchBy: '...' to any relationships in sub documents.
searchBy: '...'
Sorry, something went wrong.
@brandonpassley @cablej https://github.com/SnapMobileIO/SnapCore/wiki/Admin-schema-config-for-sub-document-relationships
No branches or pull requests
Example of a schema that isn't working...
The text was updated successfully, but these errors were encountered: