Files
probo/apps/console/src/hooks/graph/TaskGraph.ts
Bryan Frimin d263cda3f6 Add eslint-disable and TypeScript generics to graph hooks
Centralized graph files (hooks/graph/*.ts) define GraphQL
queries consumed by multiple page components. This architecture
intentionally separates field definitions from usage, triggering
relay/unused-fields and relay/must-colocate-fragment-spreads.
File-level eslint-disable comments suppress these false positives.

Also adds explicit TypeScript generics to useMutation and
usePaginationFragment calls to satisfy relay/generated-typescript-types
without eslint-disable.

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
2026-03-15 13:32:18 +01:00

15 lines
339 B
TypeScript

import { graphql } from "relay-runtime";
/* eslint-disable relay/unused-fields, relay/must-colocate-fragment-spreads */
export const tasksQuery = graphql`
query TaskGraphQuery($organizationId: ID!) {
organization: node(id: $organizationId) {
... on Organization {
id
...TasksPageFragment
}
}
}
`;