Closed
Description
Minimal working example:
@createSchema
Scenario: Retrieve a collection filtered using the related search filter
Given there are 1 dummy objects having each 2 relatedDummies
And there are 1 dummy objects having each 3 relatedDummies
When I add "Accept" header equal to "application/hal+json"
And I send a "GET" request to "/dummies?relatedDummies.name=RelatedDummy31"
Then the response status code should be 200
And the response should be in JSON
And the JSON node "_embedded.item" should have 1 element
When I send the following GraphQL request:
"""
{
dummies(relatedDummies_name: "RelatedDummy31") {
edges {
node {
id
}
}
}
}
"""
And the response status code should be 200
And the JSON node "data.dummies.edges" should have 1 element
Response should contain only one element just like in JSON. The reason is probably that relatedDummies.name
is being converted to relatedDummies_name
for GraphQL and is not handled properly on filter resolution.