Getting Started
Applied Actions
Data Request ActionsLogin Request ActionsBus ActionsExcitation System ActionsGenerator ActionsIBR ActionsllcHVDClink ActionsLoad ActionsSeries Capacitor ActionsSeries Fact ActionsShunt Capacitor ActionsShunt Fact ActionsShunt Reactor ActionsSingleLineDiagram ActionsTransformersThreeWinding ActionsTransformersTwoWinding ActionsTransmission Lines ActionsTurbine Governor ActionsUser ActionsTransmission Lines Actions
Model Schemas
Bus ModelsChanges modelsDefault params modelsExcitation System modelsGenerator ModelsIBR ModelsllcHVDClink ModelsvscHVDClink ModelsLoad ModelsHistory ModelsSeries Capacitor ModelsSeries Fact ModelsShunt Capacitor ActionsShunt Fact ModelsShunt Reactor ModelsSingleLineDiagram ModelsTransformersThreeWinding ModelsTransformersTwoWinding ModelsTransmission Lines ModelsTurbine Governor ModelsUser Models
Components
Add Columns ComponentCreate Form ComponentDelete Confirmation ComponentDisplay Table ComponentFile Upload ComponentFiltered History ComponentForm Skeleton ComponentLogin Form ComponentLogin Provider ComponentNavbar ComponentNothing to Display ComponentPush Mock Data ComponentRegistration Form ComponentSearch ComponentSidebar ComponentTable Heading ComponentTable Skeleton Component
VSCHVDCLink Schema
This code defines a Mongoose schema for a VSC HVDC link, incorporating an ID field and mixed data type fields. It supports change stream monitoring for real-time updates and exports the VSCHVDCLink model for CRUD operations on MongoDB, handling VSC HVDC link data.
In the src/content/docs/models directory, You can find the VSCHVDCLink.mdx
Functions
vscHvdcLink
const vscHvdcLinkSchema = new Schema(
{
id: {
type: String,
},
additionalFields: {
type: Schema.Types.Mixed,
default: {},
},
},
{
collectionOptions: { changeStreamPreAndPostImages: { enabled: true } },
}
);
This code defines a Mongoose schema for a VSC HVDC link, including an ID field and additional fields stored as mixed data types. The schema also enables change stream monitoring for real-time updates. The model, VSCHVDCLink, allows interaction with the MongoDB collection, facilitating CRUD operations on VSC HVDC link data.
Scroll to top