Hotchocolate: Issue with variables not being set if property of object in array.

Created on 15 Dec 2019  路  6Comments  路  Source: ChilliCream/hotchocolate

Issue

When using query variables that are part of an array it does not set the variables.

Source code of the issue

https://github.com/dlebee/HotChocolateIssue/

Example of a query

query blah($message1:String, $message2: String)
{
  contact(criteria: {
    messages: [
      { 
          message:$message1
      },
      {
          message: $message2
      }
    ]
  })
}

the variables

{
    "message1": "hello",
    "message2": "world"
}

Received Value

{
  "data": {
    "contact": [
      null,
      null
    ]
  }
}

Expected value

{
  "data": {
    "contact": [
      "hello",
      "world"
    ]
  }
}

Versions

It happens in both 10.2.0 and 11.0.0 preview latest.

bug 馃尪 hot chocolate

All 6 comments

@PascalSenn can you write a test for this so we can check out what is wrong?

@dlebee Awesome just saw the linked repo :D thanks for this repro! We will work on this one tonight.

@PascalSenn this one has nothing todo with filters... my fault ;)

@michaelstaib only normal :)

This one is now fixed

@michaelstaib thank you :)

Was this page helpful?
0 / 5 - 0 ratings