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
Hi all,
We recently announced that we have decided to deprecate the Atlas GraphQL API, and current users should’ve received an email explaining the details of the deprecation and end-of-life plan. Consequently, we will not be adding new features going forward and are updating the status for all related feedback accordingly.
Please read our announcement in the MongoDB Developer Center for more details and guidance on the migration process and timeline. Should you have any questions or need further assistance, please reach out to our support team via the MongoDB Support Portal.
We truly prioritize your satisfaction and success, and we thank you for your patience and the feedback you have provided us over the years.