// Universal domain GraphQL documents // Extracted from widgets/universal/*/index.tsx // Related: spec section 2.2 // // P1-2(ARCHITECTURE.md §10):6 个假契约查询已下线(grades/homeworks/ // schedule/attendance/exams/announcements root 字段在后端 schema 不存在)。 // 仪表盘改用 data-ana 的真实聚合查询(dashboard.graphql.ts)。 // 仅保留 notifications(查询真实字段 notifications(userId),形状待 P1-7 修正)。 import { gql } from "@apollo/client"; // From widgets/universal/notifications-widget // 注意:notifications(userId) 返回平铺数组,非 {items, total} 包装。 // 形状修正待 P1-7(codegen 恢复后统一处理)。 export const GET_NOTIFICATIONS_LIST_DOC = gql` query GetNotificationsList($limit: Int, $offset: Int) { notifications(limit: $limit, offset: $offset) { items { id title body createdAt type } total } } `;