Vue Scheduler - MongoDB Service

Use the third-party devextreme-query-mongodb extension to query data from MongoDB. This extension implements data processing on a server according to the protocol the Scheduler uses. To access the server from the client, configure the CustomStore as described in the Custom Sources article or use the createStore method. This method is a part of the DevExtreme.AspNet.Data extension. The following code shows how to use this method.

App.vue
  • <template>
  • <DxScheduler
  • :data-source="dataSource"
  • />
  • </template>
  •  
  • <script>
  • import 'devextreme/dist/css/dx.common.css';
  • import 'devextreme/dist/css/dx.light.css';
  •  
  • import DxScheduler from 'devextreme-vue/scheduler';
  • import { createStore } from 'devextreme-aspnet-data-nojquery';
  • const serviceUrl = "http://url/to/my/service";
  • const dataSource = createStore({
  • key: "ID",
  • loadUrl: serviceUrl,
  • insertUrl: serviceUrl,
  • updateUrl: serviceUrl,
  • deleteUrl: serviceUrl
  • });
  •  
  • export default {
  • components: {
  • DxScheduler
  • },
  • data() {
  • return {
  • dataSource
  • }
  • }
  • }
  • </script>

See this series of blog posts for more information on using DevExtreme UI components in applications with MongoDB.