reactjs - Reparent relay connection element -


imagine have following structure, there connection of projects connection of tasks.

viewer {   id   projects(first:10) {     edges {       node {         id         tasks(first:10) {           edges {             node {               id               project_id             }           }         }       }     }   } } 

if make mutation change project_id of task, task should move projects tasks.

i cannot figure out how make relay getconfigs , return in payload of query. there missed?

my current thoughts return both previous project , new project in payload. use range_delete removing task previous projects tasks , range_add add new projects tasks.


Comments

Popular posts from this blog

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -