File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed 
modules/ROOT/pages/migration Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -765,3 +765,43 @@ type Movie @node {
765765  title: String! @private 
766766} 
767767---- 
768+ 
769+ 
770+ === Deprecated `where` field in `update` input
771+ 
772+ The `where` field for nested update operations has been deprecated to be moved inside the `update` input field.
773+ The `where` in its deprecated location is a no-op for all nested operations apart from `update`.
774+ 
775+ For example, the following mutation is using the deprecated syntax:
776+ 
777+ ```graphql
778+ mutation {
779+     updateUsers(
780+         where: { name: { eq: "Darrell" } }
781+         update: {
782+             posts: {
783+                 where: { node: { title: { eq: "Version 6 Release Notes" } } }
784+                 update: { node: { title: { set: "Version 6 Release Announcement" } } }
785+             }
786+         }
787+     )
788+ }
789+ ```
790+ 
791+ Modify the mutation to move the `where` inside the `update` operation:
792+ 
793+ ```graphql
794+ mutation {
795+     updateUsers(
796+         where: { name: { eq: "Darrell" } }
797+         update: {
798+             posts: {
799+                 update: {
800+                     where: { node: { title: { eq: "Version 6 Release Notes" } } }
801+                     node: { title: { set: "Version 6 Release Announcement" } }
802+                 }
803+             }
804+         }
805+     )
806+ }
807+ ```
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments