Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: GQL Query for variant with hasProduct Params return an error #3357

Open
aodihis opened this issue Jan 2, 2024 · 0 comments
Open

[4.x]: GQL Query for variant with hasProduct Params return an error #3357

aodihis opened this issue Jan 2, 2024 · 0 comments
Labels
bug commerce4 Issues related to Commerce v4

Comments

@aodihis
Copy link

aodihis commented Jan 2, 2024

What happened?

Description

In Commerce 4.3.3 when we do query a variant with hasProduct param it will return an error, which on version before this one is fine. Here is our query and the error message.

query:

{
  variant (hasProduct:{slug:"some-slug"}) {
    id
  }
}

error message:

"SQLSTATE[21000]: Cardinality violation: 1241 Operand should contain 1 column(s)"

Steps to reproduce

  1. Query a variant with hasProduct param.

Expected behavior

Will return the variant

Actual behavior

giving an error

Craft CMS version

4.5.13

Craft Commerce version

4.3.3

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Tasks

No tasks being tracked yet.
@aodihis aodihis added commerce4 Issues related to Commerce v4 bug labels Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug commerce4 Issues related to Commerce v4
Projects
None yet
Development

No branches or pull requests

1 participant