Is theres a way to filter products if the resource is currently not published to the Online Store?

Hello Good day!, currently we need to filter the products without the onlineStoreUrl. We’re using it in our logic for validation in our app.

Thanks in advance for the answer!

here is my sample query:

query collectionByHandle{
  collection(handle: "bundles") {
      id
      title
      handle
      image {
        originalSrc
      }   	
      products(first: 10, after: null, reverse: true, sortKey: BEST_SELLING) {
        edges {
          cursor
          node {
            id
            title
            descriptionHtml
            tags
            onlineStoreUrl
            featuredImage {
              id
              originalSrc
            }
            variants(first: 10) {
              edges {
                node {
                  id
                  title
                  image{
                    src
                  }
                  priceV2 {
                    amount
                  }
                  compareAtPriceV2 {
                    amount
                  }
                  availableForSale
                  quantityAvailable
                }
              }
            }
          }
        }
      }
  }
}