// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "MutationData.h" namespace graphql::learn { Mutation::Mutation() noexcept { } std::shared_ptr Mutation::applyCreateReview( Episode epArg, ReviewInput&& reviewArg) noexcept { auto review = std::make_shared(reviewArg.stars, std::move(reviewArg.commentary)); // Save a copy of this review associated with this episode. reviews_[epArg].push_back(review); return std::make_shared(std::move(review)); } } // namespace graphql::learn