Robert Schäfer 963cbbef32 RemovePostEmotions should return deleted object
@mattwr18 I prefer (I believe it's even best practice) that a delete
mutation should return the deleted object. If you run the delete
mutation again, it should return `null` because there is no object like
that anymore. That way the client knows if a delete mutation has changed
any state in the database.

Also I fixed another bug in the resolver. If your graphql mutation looks
like this:

```gql
mutation {
  RemovePostEmotions(to:{ id:"p15"}, data:{emotion: angry}) {
    from {
      id
      name
    }
    to {
      id
      title
    }
    emotion
  }
}
```

Then you get errors because your resolver does not return the name for
the user or the title for the post anymore. Just use spread operator...
and it's fixed.
2019-08-08 23:51:26 +02:00
..
2019-07-09 13:00:08 -03:00
2019-05-29 09:47:24 -03:00
2019-06-29 19:21:20 +02:00
2019-08-05 17:26:50 +02:00
2019-08-07 14:55:32 +02:00
2019-07-10 13:58:11 +02:00
2019-07-15 11:20:28 -03:00
2019-06-17 10:07:53 -03:00
2019-07-10 13:58:11 +02:00
2019-05-23 19:40:39 +02:00
2019-05-23 19:40:39 +02:00
2019-05-23 19:40:39 +02:00
2019-07-10 13:58:11 +02:00
2019-05-29 09:47:24 -03:00
2019-05-29 09:47:24 -03:00
2019-05-29 09:47:24 -03:00
2019-05-23 19:40:39 +02:00
2019-05-23 19:40:39 +02:00
2019-06-28 11:19:22 +02:00
2019-08-02 16:10:19 +02:00