Support for updating nested fields in GraphQL mutations
I want to do the equivalent of {$set: {"details.pm_stage": "...."}}
export const UPDATEPROJECTDETAILS = gql
;
mutation UpdateProjectDetails($query: PsprojectQueryInput!, $pmStage: String!) {
updateOnePsproject(query: $query, set: {details: {pm_stage: $pmStage}}) {
_id
}
}
right now the whole "details" subdocument gets overridden
4
votes
