Skip to content

[Bug]: products resolver fetching unpublished products #85

@manarjan

Description

@manarjan

Expected Behavior

Products resolver should not be fetching unpublished products by default. If that is the expected behavior, there should be a filter in ProductFilterInput to filter out the unpublished products

Actual Behavior

Getting unpublished products in the products resolver

Possible Solution

add a filter

Steps to reproduce

Running the below query
`
query Products($currentPage: Int, $pageSize: Int) {
products(currentPage: $currentPage, pageSize: $pageSize) {
totalCount
minPrice
maxPrice
products {
id
typeId
visibility
name
displayName
description
attributeValues {
attribute {
name
}
name
}
productVariants {
displayName
}
thumbnail
slug
price
currency {
id
name
symbol
}
categories {
id
name
}
}
}
}

`

What version of odoo integration are you using?

16

What version of Node.js are you using?

18.17.0

What browser (and version) are you using?

Chrome 118

What operating system (and version) are you using?

macOS

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions