Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(GraphQL): Mutations not returning updated information (parse-comm…
…unity#6130) This issue was spotted when an updated field is modified in beforeSave, but the unmodified version is returned if requested by the resolver. For example ```graphql mutation UpdateTitle($id: ID!, $title: String!) { updateSomeObject(id: $id, fields: { title: $title }) { id title slug } } ``` In the above, if we modify the `title` by let's say, trimming it - the resolved `title` will not reflect this change, and instead just return the input variable. Other resolved fields that are not sent within the `fields` input are returned properly using the latest data.
- Loading branch information