GopikaReghunath commented on code in PR #2328:
URL: 
https://github.com/apache/incubator-kie-kogito-apps/pull/2328#discussion_r3279239125


##########
data-index/data-index-graphql/src/main/resources/graphql/basic.schema.graphqls:
##########
@@ -252,6 +252,28 @@ input NodeInstanceArgument {
     slaDueDate: DateArgument
 }
 
+input NodeInstanceArrayArgument {
+    # Array-specific operations
+    contains: NodeInstanceArgument
+    containsAll: [NodeInstanceArgument!]
+    containsAny: [NodeInstanceArgument!]
+    isNull: Boolean
+    and: [NodeInstanceArrayArgument!]
+    or: [NodeInstanceArrayArgument!]
+    not: NodeInstanceArrayArgument
+    # Backward compatibility:

Review Comment:
    allows filtering on array elements without explicitly using the contains, 
containsAll, or containsAny operations. Behavior: Returns entities where ANY 
array element matches the condition
   example: 
   ```
   id: "Task-A"
   "attachments": [
             {
               "id": "id-1",
               "name": "google"
             }
           ]
   
   id: "Task-B"
   "attachments": [
             {
               "id": "id-2",
               "name": "google"
             }
           ]
   
   id: "Task-C"
   "attachments": [
             {
               "id": "id-3",
               "name": "comment"
             }
           ]
   
   Query : 
   UserTaskInstances(
       where: {
         attachments: {
           name: { equal: "google" }
         }
       }
     )
   Return Task-A and Task-B
   ```
   @jstastny-cz let me know if you think this is not needed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to