Skip to content

This is intended for the E-Commerce web admin for Gem's Surplus Consumer Goods Trading.

Notifications You must be signed in to change notification settings

project-syntexia/gems-surplus-shop

Repository files navigation

Gem's Surplus Consumer Goods Trading

This is a T3 Stack project bootstrapped with create-t3-app.

Tech-stack used:

Test for MongoDB

   const database = client.db("myTestDb");
   const myPizzaCollection = database.collection("MyPizza");
   const doc = { name: "Neapolitan pizza", shape: "round" };
   try {
     /* READ */
     const finddocument = await myPizzaCollection.findOne(doc);
     if (finddocument !== null) {
       const pizza = finddocument as WithId<typeof doc>;
       console.log(`${pizza._id} ${pizza.name} ${pizza.shape}`);
     }

     /* WRITE */
      const result = await myPizzaCollection.insertOne(doc);
      console.log(
        `Succesfully inserted ${result.insertedId}/${result.acknowledged}`,
      );
   } catch (err) {
     console.log(err);
   }

About

This is intended for the E-Commerce web admin for Gem's Surplus Consumer Goods Trading.

Topics

Resources

Stars

Watchers

Forks