Fix move-cookie connection lookup with filters: []

ConnectionHandler.getConnection could not find the cookies
connection because orderBy was implicitly treated as a filter.
Add filters: [] to the @connection directive and document the
filters rule in contrib/claude/relay.md.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-21 14:03:05 +04:00
parent 8e420da5bc
commit 8dfed9fff2
2 changed files with 34 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ export const categorySectionFragment = graphql`
description
kind
cookies(first: 100, orderBy: { field: CREATED_AT, direction: ASC })
@connection(key: "CategorySection_cookies")
@connection(key: "CategorySection_cookies", filters: [])
@required(action: THROW) {
__id
edges {