What is the graphql query behind AppBridge's ResourcePicker for selecting products

What is the graphql query backing AppBridge ResourcePicker?

I am trying to build a resource picker that would search products and variants same as the AppBridge ResourcePicker component. I’d use the provided AppBridge ResourcePicker but it has limited customisation options.