import { model, Schema } from 'mongoose'
type Types = {}
const userSchema = new Schema<Types>({})
const User = model<Types>('User', userSchema)Beautifully-designed print-ready PDF
$ mongod: start MongoDB server (localhost:27017)$ mongo: open MongoDB console (connect to local server by default)
MongoDB Crash Course 2022 < TODO: Add Video Link
This is a Cheat Sheet for interacting with the Mongo Shell ( mongo on your command line). This is for MongoDB Community Edition.
Mongo Manual can help you with getting started using the Shell.
FAQ for MongoDB Fundamentals and other FAQs can be found in the side-bar after visiting that link.
useMutationHook.js
import { useMutation, useQueryClient } from '@tanstack/react-query'
import { addMemberPayment as addMemberPaymentApi } from 'api/services'
function useHookName() {
const queryClient = useQueryClient()
const { mutate: addMemberPayment, isPending } = useMutation({createRoutesFromElements.js
import {
createBrowserRouter,
createRoutesFromElements,
RouterProvider,
} from "react-router-dom";
// You can do this:
const router = createBrowserRouter(