Closed thetif closed 1 year ago
when is this error happening? because just simply pasting the provided schema and running it (without any connection or insertion) does not yield any errors
(NodeJS 18.7.0)
I'm getting the error every time I try to insert into the database but specifically when I try to seed our data. This was all working before I updated mongoose. I think the issue is related to the new subdocument path merging.
The Department...
", narrativeHIT: 'Continued Operations of the Medicaid EHR Incentive Payment Program
\nParticipate in the CMS EHR incentive program and continue to administer payments to EPs and EHs through the remaining years of the program (2023).
', narrativeHIE: "Tycho''s existing health information infrastructure...
", narrativeMMIS: "Medicaid Claims Data Feed...
" }, keyStatePersonnel: { medicaidDirector: { name: 'Cornelius Fudge', email: 'c.fudge@ministry.magic', phone: '5551234567' }, medicaidOffice: { address1: '100 Round Sq', address2: '', city: 'Cityville', state: 'AK', zip: '12345' }, keyPersonnel: [ { name: 'James Holden', position: 'HIT Coordinator', email: 'JimPushesButtons@tycho.com', isPrimary: true, fte: { 2022: 1, 2023: 1 }, hasCosts: true, costs: { 2022: 100000, 2023: 100000 } }, { name: 'Fred Johnson', position: 'Project Management Office Director', email: 'FJohnson@tycho.com', isPrimary: false, fte: { 2022: 0.3, 2023: 0.3 }, hasCosts: false, costs: { 2022: 0, 2023: 0 } } ] }, previousActivities: { previousActivitySummary: 'EHR Incentive Payment Program
', actualExpenditures: { 2019: { hithie: { federalActual: 140000, totalApproved: 280000 }, mmis: { 50: { federalActual: 23445, totalApproved: 82545 }, 75: { federalActual: 23440, totalApproved: 75340 }, 90: { federalActual: 235720, totalApproved: 262460 } } }, 2020: { hithie: { federalActual: 146346, totalApproved: 234526 }, mmis: { 50: { federalActual: 129387, totalApproved: 375445 }, 75: { federalActual: 413246, totalApproved: 654455 }, 90: { federalActual: 614544, totalApproved: 863455 } } }, 2021: { hithie: { federalActual: 320000, totalApproved: 540000 }, mmis: { 50: { federalActual: 0, totalApproved: 0 }, 75: { federalActual: 0, totalApproved: 0 }, 90: { federalActual: 0, totalApproved: 0 } } } } }, activities: [ { alternatives: 'Modifications to State Level Registry (SLR)...
', contractorResources: [ { description: 'Maintain SLR', end: '', hourly: { 2022: { hours: '', rate: '' }, 2023: { hours: '', rate: '' } }, useHourly: false, name: 'Super SLR Incorporated', start: '', totalCost: 32423, years: { 2022: 999756, 2023: 342444 } }, { description: 'Technology consulting and planning services.', end: '', hourly: { 2022: { hours: '', rate: '' }, 2023: { hours: '', rate: '' } }, useHourly: false, name: 'Tech Consulting Inc.', start: '', totalCost: 473573, years: { 2022: 333000, 2023: 200000 } } ], costAllocation: { 2022: { ffp: { federal: 90, state: 10 }, other: 105000 }, 2023: { ffp: { federal: 90, state: 10 }, other: 0 } }, costAllocationNarrative: { years: { 2022: { otherSources: 'No other funding is provided for this activity for FFY 2022.
' }, 2023: { otherSources: 'No other funding is provided for this activity for FFY 2023.
' } }, methodology: 'No cost allocation is necessary for this activity.
' }, description: 'III.A.1: Modifications to the State Level Repository
', expenses: [ { description: '', category: 'Training and outreach', years: { 2022: 40000, 2023: 40000 } }, { description: '', category: 'Travel', years: { 2022: 35000, 2023: 35000 } }, { description: '', category: 'Hardware, software, and licensing', years: { 2022: 700000, 2023: 0 } } ], fundingSource: 'HIT', outcomes: [ { outcome: 'Accept attestations for 2022, and modify SLR to meet new spec sheets released by CMS.', metrics: [ { metric: 'Complete SLR modifications by 11/1/21' }, { metric: 'Accept attestations through 4/30/22.' } ] }, { outcome: 'Provide support to EPs and EHs through attestation process.', metrics: [ { metric: "Guidance available on Tycho''s websites" }, { metric: 'Office hours availble for EPs and EHs' }, { metric: 'Site visits, as needed, for EPs and EHs' } ] } ], name: 'Program Administration', plannedEndDate: '2023-09-30', plannedStartDate: '2017-10-01', schedule: [ { endDate: '2020-09-07', milestone: 'Implementation of Final Rule and Stage 3 System Developments' }, { endDate: '2019-12-31', milestone: 'Environmental Scan Completion' }, { endDate: '2022-05-30', milestone: 'HIT Roadmap Development' } ], standardsAndConditions: { doesNotSupport: '', supports: 'We will comply with standards and conditions
' }, statePersonnel: [ { title: 'Project Assistant', description: 'Coordination and document management support daily administrative support such as meeting minutes and scribe, manages project library, scheduling, and correspondence tracking.', years: { 2022: { amt: 86000, perc: 1 }, 2023: { amt: 88000, perc: 1 } } }, { title: 'EHR Incentive Program Meaningful Use Coordinator (Research Analyst III)', description: 'Develop and monitor reports, assist data users in developing and managing queries.', years: { 2022: { amt: 101115, perc: 1 }, 2023: { amt: 102111, perc: 1 } } }, { title: 'IT Liaison', description: 'Provide analysis and coordination activities between the HIT Program Office and the IT section, to ensure that adequate resources and priority are established to complete the technology projects as identified.', years: { 2022: { amt: 101000, perc: 1 }, 2023: { amt: 104000, perc: 1 } } }, { title: 'Accountant III', description: 'Coordinate program state and federal budget and expense reporting, review and validate charges to CMS federal reports.', years: { 2022: { amt: 101000, perc: 3 }, 2023: { amt: 109000, perc: 3 } } }, { title: 'Public Information Officer', description: 'Develop outreach materials including: written, television and radio publications to support outreach for the Medicaid EHR Incentive Program', years: { 2022: { amt: 165000, perc: 0.5 }, 2023: { amt: 170000, perc: 0.5 } } }, { title: 'Systems Chief', description: 'Coordinate office resources, manage staff, budget, and resource assignments, and report program status.', years: { 2022: { amt: 135000, perc: 0.5 }, 2023: { amt: 140000, perc: 0.5 } } }, { title: 'Medicaid EHR Incentive Program Manager (Medical Assistance Administrator III)', description: 'Data collection and analysis, reporting, planning, service delivery modification, support administration of the EHR Incentive Payment Program including provider application review.', years: { 2022: { amt: 110012, perc: 1 }, 2023: { amt: 111102, perc: 1 } } }, { title: 'System Analyst (Analyst Programmer IV)', description: 'Supports design, development and implementation of information technology infrastructure for the projects/programs under the IT Planning office supported by this Implementation Advanced Planning Document.', years: { 2022: { amt: 98987, perc: 4 }, 2023: { amt: 99897, perc: 4 } } } ], summary: '1 Continued Operations of the Medicaid EHR Incentive Payment Program, includes modifications to the SLR, HIT staff, auditing, outreach, and non-personnel expenses for administering the program.', quarterlyFFP: { 2022: { 1: { combined: 25, contractors: 25, inHouse: 25 }, 2: { combined: 25, contractors: 25, inHouse: 25 }, 3: { combined: 25, contractors: 25, inHouse: 25 }, 4: { combined: 25, contractors: 25, inHouse: 25 } }, 2023: { 1: { combined: 25, contractors: 25, inHouse: 25 }, 2: { combined: 25, contractors: 25, inHouse: 25 }, 3: { combined: 25, contractors: 25, inHouse: 25 }, 4: { combined: 25, contractors: 25, inHouse: 25 } } } }, { alternatives: "Medicaid Claims Data Feed to the HIE
", contractorResources: [ { description: 'Hosting and development support.', end: '', hourly: { 2022: { hours: '', rate: '' }, 2023: { hours: '', rate: '' } }, useHourly: false, name: 'Interface Vendor Inc.', start: '', totalCost: 26453574, years: { 2022: 650000, 2023: 750000 } }, { description: 'Interface M&O contractor.', end: '', hourly: { 2022: { hours: '', rate: '' }, 2023: { hours: '', rate: '' } }, useHourly: false, name: 'TBD', start: '', totalCost: 7398, years: { 2022: 0, 2023: 1000000 } } ], costAllocation: { 2022: { ffp: { federal: 90, state: 10 }, other: 0 }, 2023: { ffp: { federal: 75, state: 25 }, other: 0 } }, costAllocationNarrative: { years: { 2022: { otherSources: 'No other funding is provided for this activity for FFY 2022.
' }, 2023: { otherSources: 'No other funding is provided for this activity for FFY 2023.
\n' } }, methodology: 'No cost allocation is necessary for this activity.
\n' }, description: "III.B.3 Medicaid Claims Data Feed to the HIE
", expenses: [ { description: '', category: 'Travel', years: { 2022: 0, 2023: 0 } } ], fundingSource: 'MMIS', outcomes: [ { outcome: 'Build interface between the MMIS Data Warehouse (DW) and the HIE so that Medicaid claims data can be made available to consumers in their Personal Health Record (PHR) within the HIE.', metrics: [ { metric: 'Hire contracted support to build an open API for the DW that the HIE and PHR can consume.' }, { metric: 'Provide support for using open API for DW' } ] } ], name: 'Claims Data Analytics', plannedEndDate: '2022-09-30', plannedStartDate: '2019-10-01', schedule: [ { endDate: '2022-12-31', milestone: 'Implement MMIS-HIE Interface' }, { endDate: '2022-12-31', milestone: 'Develop MMIS-HIE Interface Requirements' } ], standardsAndConditions: { doesNotSupport: 'We will comply with standards and conditions', supports: 'We will comply with standards and conditions
' }, statePersonnel: [ { title: 'Project Assistant', description: 'Assist with stuff', years: { 2022: { amt: 98000, perc: 1 }, 2023: { amt: 99000, perc: 1 } } }, { title: 'MMIS Project Manager', description: 'This position is responsible for the program development, planning, coordination, evaluation, independent management and oversight of the Tycho Automated Info', years: { 2022: { amt: 140000, perc: 1 }, 2023: { amt: 144000, perc: 1 } } }, { title: 'MMIS Trainer', description: 'Under the direct supervision of the Project Manager, this position is responsible for the development of a comprehensive training and support program for the Tycho Automated Information Management System', years: { 2022: { amt: 115000, perc: 1 }, 2023: { amt: 115000, perc: 1 } } }, { title: 'Programmer IV', description: 'The main purpose of this position is to develop and support Web and Client/Server applications. Duties include analysis, design, testing, debugging, documenting and supporting new and existing systems', years: { 2022: { amt: 140000, perc: 1 }, 2023: { amt: 145000, perc: 1 } } }, { title: 'Security IT', description: 'Make sure its secure.', years: { 2022: { amt: 115000, perc: 1 }, 2023: { amt: 120000, perc: 1 } } }, { title: 'Operations Specialist', description: 'Run the day to day.', years: { 2022: { amt: 125000, perc: 1 }, 2023: { amt: 130000, perc: 1 } } }, { title: 'Programmer V', description: 'The main purpose of this position is to develop and support Web and Client/Server applications. Duties include analysis, design, testing, debugging, documenting and supporting new and existing systems', years: { 2022: { amt: 150000, perc: 2 }, 2023: { amt: 155000, perc: 3 } } }, { title: 'Programmer III', description: 'The main purpose of this position is to develop and support Web and Client/Server applications. Duties include analysis, design, testing, debugging, documenting and supporting new and existing systems', years: { 2022: { amt: 120000, perc: 1 }, 2023: { amt: 125000, perc: 1 } } } ], summary: 'To provide healthcare statistical information and support MU, Tycho plans to interface the MMIS Data Warehouse (DW) to the HIE so that Medicaid claims data can be made available to consumers in their Personal Health Record (PHR) within the HIE. ', quarterlyFFP: { 2022: { 1: { combined: 25, contractors: 25, inHouse: 25 }, 2: { combined: 25, contractors: 25, inHouse: 25 }, 3: { combined: 25, contractors: 25, inHouse: 25 }, 4: { combined: 25, contractors: 25, inHouse: 25 } }, 2023: { 1: { combined: 25, contractors: 25, inHouse: 25 }, 2: { combined: 25, contractors: 25, inHouse: 25 }, 3: { combined: 25, contractors: 25, inHouse: 25 }, 4: { combined: 25, contractors: 25, inHouse: 25 } } } }, { alternatives: 'Health Information Exchange
\nMaintain existing system.
, contractorResources: [ { description: 'Creates materials for training ', end: '2022-05-31', hourly: { 2022: { hours: '', rate: '' }, 2023: { hours: '', rate: '' } }, useHourly: false, name: 'Sample Training Contractor Name', start: '2022-01-01', totalCost: 20000, years: { 2022: 0, 2023: 0 } } ], costAllocation: { 2022: { ffp: { federal: 90, state: 10 }, other: 0 }, 2023: { ffp: { federal: 90, state: 10 }, other: 0 } }, costAllocationNarrative: { years: { 2022: { otherSources: '' }, 2023: { otherSources: '' } }, methodology: '' }, description: "III.D. Statewide HIE Enhancement, Onboarding, and Support of Statewide HIE Operational Strategic Plan
", expenses: [ { description: 'Training materials creation and software for compliance', category: 'Hardware, software, and licensing', years: { 2022: 10000, 2023: 10000 } } ], fundingSource: 'HIE', outcomes: [ { outcome: 'Onboard 100 providers.', metrics: [{ metric: '100 providers onboarded.' }] } ], name: 'HIE Enhancement and Onboarding', plannedEndDate: '2023-09-30', plannedStartDate: '2018-01-01', schedule: [ { endDate: '2022-09-30', milestone: 'Onboard providers to assistance program' }, { endDate: '2022-12-31', milestone: 'Development of Roadmap' }, { endDate: '2023-01-01', milestone: 'HIE Staff Augmentation' }, { endDate: '2022-01-01', milestone: 'Modules for Care Coordination' }, { endDate: '2023-09-30', milestone: 'Provider Onboarding' }, { endDate: '2022-10-01', milestone: 'EDIE System Implementation' }, { endDate: '2022-12-31', milestone: 'Develop myAlaska HIE Authentication Requirements' }, { endDate: '2022-03-31', milestone: 'Completion of requirements gathering to prepare to receive ELR' }, { endDate: '2022-12-31', milestone: 'Configuration of internal BizTalk HL7 processes to translate the HL7 messages to PRISM' }, { endDate: '2022-09-30', milestone: 'Onboard Lab Providers' }, { endDate: '2018-12-31', milestone: 'Establishment of program requirements and outreach strategy' } ], standardsAndConditions: { doesNotSupport: '', supports: 'We will comply with standards and conditions
' }, statePersonnel: [ { title: 'Services Integration Architect/ Programmer (Analyst Programmer V)', description: 'Lead technical architecture design and development efforts for designing, implementing and maintaining services integrations leveraging resources such as the MCI, MPI and state HIE along with other DHSS Business Systems.', years: { 2022: { amt: 115000, perc: 4 }, 2023: { amt: 119000, perc: 4 } } } ], summary: 'Statewide HIE enhancement and onboarding.', quarterlyFFP: { 2022: { 1: { combined: 25, contractors: 25, inHouse: 25 }, 2: { combined: 25, contractors: 25, inHouse: 25 }, 3: { combined: 25, contractors: 25, inHouse: 25 }, 4: { combined: 25, contractors: 25, inHouse: 25 } }, 2023: { 1: { combined: 25, contractors: 25, inHouse: 25 }, 2: { combined: 25, contractors: 25, inHouse: 25 }, 3: { combined: 25, contractors: 25, inHouse: 25 }, 4: { combined: 25, contractors: 25, inHouse: 25 } } } }, { alternatives: 'Medicaid PHR/Blue Button
', contractorResources: [ { description: '', end: '', hourly: { 2022: { hours: '', rate: '' }, 2023: { hours: '', rate: '' } }, useHourly: false, name: 'RFP Planning Vendor Inc.', start: '', totalCost: 68734, years: { 2022: 50000, 2023: 5000 } }, { description: '', end: '', hourly: { 2022: { hours: '', rate: '' }, 2023: { hours: '', rate: '' } }, useHourly: false, name: 'Blue Button Builder Inc.', start: '', totalCost: 1235246, years: { 2022: 735246, 2023: 500000 } } ], costAllocation: { 2022: { ffp: { federal: 90, state: 10 }, other: 15000 }, 2023: { ffp: { federal: 90, state: 10 }, other: 0 } }, costAllocationNarrative: { years: { 2022: { otherSources: 'Sample Grant Related to Blue Button $15000
' }, 2023: { otherSources: '' } }, methodology: '' }, description: 'III.C.1 Medicaid Personal Health Record (PHR)/Blue Button Initiative
', expenses: [ { description: '', category: 'Hardware, software, and licensing', years: { 2022: 0, 2023: 0 } } ], fundingSource: 'HIE', outcomes: [ { outcome: 'Build blue button.', metrics: [{ metric: 'Test blue button with 10 providers.' }] } ], name: 'Medicaid Blue Button', plannedEndDate: '2022-09-30', plannedStartDate: '2018-06-01', schedule: [ { endDate: '2022-04-01', milestone: 'PHR/Blue Button HIE Build' }, { endDate: '2022-12-31', milestone: 'Blue Button Implementation' }, { endDate: '2022-12-31', milestone: 'On-Boarding of PHR/Blue Button Participants' } ], standardsAndConditions: { doesNotSupport: '', supports: '' }, statePersonnel: [ { title: '', description: '', years: { 2022: { amt: 0, perc: 0 }, 2023: { amt: 0, perc: 0 } } } ], summary: 'DHSS is requesting HITECH funding to support the onboarding of Medicaid recipients to the developed personal health record (PHR) available within the HIE.', quarterlyFFP: { 2022: { 1: { combined: 25, contractors: 25, inHouse: 25 }, 2: { combined: 25, contractors: 25, inHouse: 25 }, 3: { combined: 25, contractors: 25, inHouse: 25 }, 4: { combined: 25, contractors: 25, inHouse: 25 } }, 2023: { 1: { combined: 25, contractors: 25, inHouse: 25 }, 2: { combined: 25, contractors: 25, inHouse: 25 }, 3: { combined: 25, contractors: 25, inHouse: 25 }, 4: { combined: 25, contractors: 25, inHouse: 25 } } } } ], proposedBudget: { incentivePayments: { ehAmt: { 2022: { 1: 0, 2: 0, 3: 0, 4: 0 }, 2023: { 1: 0, 2: 0, 3: 0, 4: 0 } }, ehCt: { 2022: { 1: 0, 2: 0, 3: 0, 4: 0 }, 2023: { 1: 0, 2: 0, 3: 0, 4: 0 } }, epAmt: { 2022: { 1: 0, 2: 0, 3: 0, 4: 0 }, 2023: { 1: 0, 2: 0, 3: 0, 4: 0 } }, epCt: { 2022: { 1: 0, 2: 0, 3: 0, 4: 0 }, 2023: { 1: 0, 2: 0, 3: 0, 4: 0 } } } }, assurancesAndCompliances: { procurement: [ { title: '42 CFR Part 495.348', checked: true, explanation: '' }, { title: 'SMM Section 11267', checked: true, explanation: '' }, { title: '45 CFR 95.613', checked: true, explanation: '' }, { title: '45 CFR 75.326', checked: true, explanation: '' } ], recordsAccess: [ { title: '42 CFR Part 495.350', checked: true, explanation: '' }, { title: '42 CFR Part 495.352', checked: true, explanation: '' }, { title: '42 CFR Part 495.346', checked: true, explanation: '' }, { title: '42 CFR 433.112(b)', checked: true, explanation: '' }, { title: '45 CFR Part 95.615', checked: true, explanation: '' }, { title: 'SMM Section 11267', checked: true, explanation: '' } ], softwareRights: [ { title: '42 CFR 495.360', checked: false, explanation: 'We were able to get better pricing if we allowed the vendor to maintain ownership of the product they developed.' }, { title: '45 CFR 95.617', checked: true, explanation: '' }, { title: '42 CFR Part 431.300', checked: true, explanation: '' }, { title: '42 CFR Part 433.112', checked: true, explanation: '' } ], security: [ { title: '45 CFR 164 Security and Privacy', checked: true, explanation: '' } ] } }; const apdNoActivities = { name: 'HITECH IAPD No Activities', years: ['2022', '2023'], apdOverview: { programOverview: "The Department is the state agency that administers...
", narrativeHIT: 'Continued Operations of the Medicaid EHR Incentive Payment Program
', narrativeHIE: "Tycho''s existing health information infrastructure...
", narrativeMMIS: "Medicaid Claims Data Feed to the HIE
" }, keyStatePersonnel: { medicaidDirector: { name: 'Cornelius Fudge', email: 'c.fudge@ministry.magic', phone: '5551234567' }, medicaidOffice: { address1: '100 Round Sq', address2: '', city: 'Cityville', state: 'AK', zip: '12345' }, keyPersonnel: [ { name: 'James Holden', position: 'HIT Coordinator', email: 'JimPushesButtons@tycho.com', isPrimary: true, fte: { 2022: 1, 2023: 1 }, hasCosts: true, costs: { 2022: 100000, 2023: 100000 } }, { name: 'Fred Johnson', position: 'Project Management Office Director', email: 'FJohnson@tycho.com', isPrimary: false, fte: { 2022: 0.3, 2023: 0.3 }, hasCosts: false, costs: { 2022: 0, 2023: 0 } } ] }, previousActivities: { previousActivitySummary: 'EHR Incentive Payment Program
', actualExpenditures: { 2019: { hithie: { federalActual: 140000, totalApproved: 280000 }, mmis: { 50: { federalActual: 23445, totalApproved: 82545 }, 75: { federalActual: 23440, totalApproved: 75340 }, 90: { federalActual: 235720, totalApproved: 262460 } } }, 2020: { hithie: { federalActual: 146346, totalApproved: 234526 }, mmis: { 50: { federalActual: 129387, totalApproved: 375445 }, 75: { federalActual: 413246, totalApproved: 654455 }, 90: { federalActual: 614544, totalApproved: 863455 } } }, 2021: { hithie: { federalActual: 320000, totalApproved: 540000 }, mmis: { 50: { federalActual: 0, totalApproved: 0 }, 75: { federalActual: 0, totalApproved: 0 }, 90: { federalActual: 0, totalApproved: 0 } } } } }, activities: [], proposedBudget: { incentivePayments: { ehAmt: { 2022: { 1: 0, 2: 0, 3: 0, 4: 0 }, 2023: { 1: 0, 2: 0, 3: 0, 4: 0 } }, ehCt: { 2022: { 1: 0, 2: 0, 3: 0, 4: 0 }, 2023: { 1: 0, 2: 0, 3: 0, 4: 0 } }, epAmt: { 2022: { 1: 0, 2: 0, 3: 0, 4: 0 }, 2023: { 1: 0, 2: 0, 3: 0, 4: 0 } }, epCt: { 2022: { 1: 0, 2: 0, 3: 0, 4: 0 }, 2023: { 1: 0, 2: 0, 3: 0, 4: 0 } } } }, assurancesAndCompliances: { procurement: [ { title: '42 CFR Part 495.348', checked: true, explanation: '' }, { title: 'SMM Section 11267', checked: true, explanation: '' }, { title: '45 CFR 95.613', checked: true, explanation: '' }, { title: '45 CFR 75.326', checked: true, explanation: '' } ], recordsAccess: [ { title: '42 CFR Part 495.350', checked: true, explanation: '' }, { title: '42 CFR Part 495.352', checked: true, explanation: '' }, { title: '42 CFR Part 495.346', checked: true, explanation: '' }, { title: '42 CFR 433.112(b)', checked: true, explanation: '' }, { title: '45 CFR Part 95.615', checked: true, explanation: '' }, { title: 'SMM Section 11267', checked: true, explanation: '' } ], softwareRights: [ { title: '42 CFR 495.360', checked: false, explanation: 'We were able to get better pricing if we allowed the vendor to maintain ownership of the product they developed.' }, { title: '45 CFR 95.617', checked: true, explanation: '' }, { title: '42 CFR Part 431.300', checked: true, explanation: '' }, { title: '42 CFR Part 433.112', checked: true, explanation: '' } ], security: [ { title: '45 CFR 164 Security and Privacy', checked: true, explanation: '' } ] } }; const data = [ { stateId: 'ak', status: 'draft', ...apd }, { stateId: 'ak', status: 'draft', ...apdNoActivities } ]; module.exports = { data, apd }; ```Can reproduce
Reproduction Repository / branch: https://github.com/typegoose/typegoose-testing/tree/mongooseGh12220
@thetif could you maybe add code-syntax highlighting to your code-blocks? Creating and highlighting code blocks also could you wrap your long code blocks in "Spoilers"? Details+Summary (Note: markdown needs one empty line between the last / next html element)
We can't upgrade past the vulnerable version of mongoose while this is an issue. Is there something we could do in the meantime? Is there something we should change in our code to get the newer versions working?
@thetif I'm sorry for the trouble, we'll have a fix in 6.5.3 within the next 24 hours.
That's awesome! Thanks so much for handling this so quickly.
Prerequisites
Mongoose version
6.5.1
Node.js version
16.16.0
MongoDB version
5.0.9
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
12.5
Issue
I am trying to upgrade our mongoose to the newest version, but I am having trouble with adding things to mongo now. I was seeing an error
MongooseError: Conflicting dotted paths when setting document path, key: "mmis.50", value: true"
but now I'm consistently getting anRangeError: Maximum call stack size exceeded
. I have tried addingminimize: false
to all of my subdocuments but it doesn't seem to be helping. Here is my schema, could you please help me figure out where my issue is?you can also view our entire source code here