/// <summary>
        /// Updates a branch.
        /// </summary>
        /// <param name="branchInput"></param>
        /// <returns>The stream's id.</returns>
        public async Task <bool> BranchUpdate(CancellationToken cancellationToken, BranchUpdateInput branchInput)
        {
            try
            {
                var request = new GraphQLRequest
                {
                    Query     = @"mutation branchUpdate($myBranch: BranchUpdateInput!){ branchUpdate(branch: $myBranch)}",
                    Variables = new
                    {
                        myBranch = branchInput
                    }
                };

                var res = await GQLClient.SendMutationAsync <Dictionary <string, object> >(request, cancellationToken).ConfigureAwait(false);

                if (res.Errors != null)
                {
                    throw new SpeckleException("Could not update branch", res.Errors);
                }

                return((bool)res.Data["branchUpdate"]);
            }
            catch (Exception e)
            {
                throw new SpeckleException(e.Message, e);
            }
        }
 /// <summary>
 /// Updates a branch.
 /// </summary>
 /// <param name="branchInput"></param>
 /// <returns>The stream's id.</returns>
 public Task <bool> BranchUpdate(BranchUpdateInput branchInput)
 {
     return(BranchUpdate(CancellationToken.None, branchInput));
 }