@@ -84,6 +84,51 @@ Feature: Collections filtering
8484 Then the JSON node "data.dummies.edges" should have 1 element
8585 And the JSON node "data.dummies.edges[0].node.id" should be equal to "/dummies/2"
8686
87+ @createSchema
88+ Scenario : Retrieve a collection filtered using the search filter and a name converter
89+ Given there are 10 dummy objects
90+ When I send the following GraphQL request:
91+ """
92+ {
93+ dummies(name_converted: "Converted 2") {
94+ edges {
95+ node {
96+ id
97+ name
98+ name_converted
99+ }
100+ }
101+ }
102+ }
103+ """
104+ Then the JSON node "data.dummies.edges" should have 1 element
105+ And the JSON node "data.dummies.edges[0].node.id" should be equal to "/dummies/2"
106+ And the JSON node "data.dummies.edges[0].node.name_converted" should be equal to "Converted 2"
107+
108+ @createSchema
109+ Scenario : Retrieve a collection filtered using the search filter and a name converter
110+ Given there are 20 convertedOwner objects with convertedRelated
111+ When I send the following GraphQL request:
112+ """
113+ {
114+ convertedOwners(name_converted__name_converted: "Converted 2") {
115+ edges {
116+ node {
117+ id
118+ name_converted {
119+ name_converted
120+ }
121+ }
122+ }
123+ }
124+ }
125+ """
126+ Then the JSON node "data.convertedOwners.edges" should have 2 element
127+ And the JSON node "data.convertedOwners.edges[0].node.id" should be equal to "/converted_owners/2"
128+ And the JSON node "data.convertedOwners.edges[0].node.name_converted.name_converted" should be equal to "Converted 2"
129+ And the JSON node "data.convertedOwners.edges[1].node.id" should be equal to "/converted_owners/20"
130+ And the JSON node "data.convertedOwners.edges[1].node.name_converted.name_converted" should be equal to "Converted 20"
131+
87132 @createSchema
88133 Scenario : Retrieve a collection filtered using the search filter
89134 Given there are 3 dummy objects having each 3 relatedDummies
@@ -141,7 +186,7 @@ Feature: Collections filtering
141186 When I send the following GraphQL request:
142187 """
143188 {
144- dummies(relatedDummies_name : "RelatedDummy31") {
189+ dummies(relatedDummies__name : "RelatedDummy31") {
145190 edges {
146191 node {
147192 id
@@ -159,7 +204,7 @@ Feature: Collections filtering
159204 When I send the following GraphQL request:
160205 """
161206 {
162- dummies(order: {relatedDummy_name : "DESC"}) {
207+ dummies(order: {relatedDummy__name : "DESC"}) {
163208 edges {
164209 node {
165210 name
@@ -183,7 +228,7 @@ Feature: Collections filtering
183228 When I send the following GraphQL request:
184229 """
185230 {
186- dummies(relatedDummy_name_list : ["RelatedDummy #1", "RelatedDummy #2"]) {
231+ dummies(relatedDummy__name_list : ["RelatedDummy #1", "RelatedDummy #2"]) {
187232 edges {
188233 node {
189234 id
0 commit comments