Question: I want to fetch added new values from mongodb collections without timestamp value. I guess only choice using objectid field. I using test dataset on github. "https://raw.githubusercontent.com/mongodb/docs-assets/primer-dataset/primer-dataset.json"
For example if I add new data to this collection, how ı fetch or how ı find these new values.
Some mongodb collections using timestamp value, and I use this timestamp value for get new values. But ı do not know, how ı find without timestamp.
Example dataset ;
[enter image description here](https://i.stack.imgur.com/ZTstM.png)

I want like this filter. but it doesn't work

```
{_id: {$gt: '622e04d69edb39455e06d4af'}}

```

Answer: 
To use the chat widget of Tawk.to I used the Script component with the lazyOnload strategy. You can read more in the [docs.](https://nextjs.org/docs/basic-features/script)

```js
import Script from 'next/script';

// inside the return statement of your page
return (
  <>
    <Script
      strategy="lazyOnload"
      src="https://embed.tawk.to/PROPERTY_ID"
    />
  </>
);

```
This works perfectly for my project:  

**npm**:

```
npm i @tawk.to/tawk-messenger-react

```

**yarn**:

```
yarn add @tawk.to/tawk-messenger-react

```

Then add the following:

```
import "../styles/globals.css";
import Message from "../components/Message";
import Head from "next/head";
import Script from "next/script";
import TawkMessengerReact from "@tawk.to/tawk-messenger-react";
import { useRef } from 'react';

function MyApp({ Component, pageProps }) {
  const tawkMessengerRef = useRef();

  const handleMinimize = () => {
    tawkMessengerRef.current.minimize();
  };
  return (
    <>
      <Component {...pageProps} />
      <button onClick={handleMinimize}> Minimize the Chat </button>

      <TawkMessengerReact
        propertyId={process.env.NEXT_PUBLIC_TWAKTO_PROPERTY_ID}
        widgetId={process.env.NEXT_PUBLIC_TWAKTO_WIDGET_ID}
        useRef={tawkMessengerRef}
      />
    </>
  );
}

export default MyApp;

```

To get more of an idea check out [tawk.to](https://github.com/tawk/tawk-messenger-react/blob/HEAD/docs/how-to-use.md)  

for more customization visit [this page](https://github.com/tawk/tawk-messenger-react/blob/HEAD/docs/api-reference.md)