Mutations
using System.Collections.Generic;
namespace SlackClone.DTO
{
public interface IMutationResponse
{
public bool ok { get; set; }
public List<string> errors { get; set; }
}
}using System;
using System.Collections.Generic;
namespace SlackClone.DTO
{
public class InsertMutationResponse : IMutationResponse
{
public bool ok { get; set; }
public List<string> errors { get; set; }
public Guid InsertedId { get; set; }
public InsertMutationResponse(bool _ok = false, List<string> _errors = null, Guid _id = default)
{
ok = _ok;
errors = _errors;
InsertedId = _id;
}
}
}

Last updated