Fix missing RowsAffected checks in cookie update methods
Address PR review comments: capture Exec result and check RowsAffected() == 0 to return ErrResourceNotFound in Cookie.Update, CookieCategory.Update, and CookieCategory.UpdateRank. Also update coredata and relay contributor docs accordingly. Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -341,7 +341,7 @@ Relay directives handle connection updates automatically — no manual store man
|
||||
|
||||
#### Connection setup
|
||||
|
||||
Any connection that a mutation will add to or remove from **must** have a `@connection` directive and expose `__id`:
|
||||
Any connection that a mutation will add to or remove from **must** have a `@connection` directive. If the mutation needs the connection ID in the same fragment, expose `__id`; otherwise derive it with `ConnectionHandler.getConnectionID`:
|
||||
|
||||
```tsx
|
||||
const fragment = graphql`
|
||||
|
||||
Reference in New Issue
Block a user