graphql query products from collection published on on specific channel

graphql query products from collection published on on specific channel

deepllp
Shopify Partner
1 0 0

When i'm making query as below I'm getting products that are both published on given channel and not, how can I get only products published on that channel and belonging to that collection. I was trying to run products query instead but then i was getting products in the differrent order from the one that is manually set within collection. 

{
collectionByHandle(handle: "men-fedoras-homburgs") {

id
products(first:250) {
edges { node { id title publishedOnChannel(channelId: "gid:\/\/shopify\/Channel\/56312496285")}}

}}}

  

Replies 0 (0)