UNPKG

phx-node

Version:

PHX NODE

3 lines (2 loc) 1.42 kB
export declare const GET_STUDENT_INFO_QUERY: string; export declare const GET_STUDENT_INFO_QUERY_V3 = "\n query GetStudentInfo($student_id: Int!, $studentStatus: [Int!]!) {\n users(\n where: {\n id: { _eq: $student_id }\n deleted_at: { _is_null: true }\n school_id: { _is_null: false }\n profile_student: { student_status: { _in: $studentStatus } }\n user_roles: {\n deleted_at: { _is_null: true }\n role: { role_code: { _eq: SV } }\n is_active: { _eq: true }\n }\n }\n ) {\n school_id\n classroom_students(\n where: {\n deleted_at: { _is_null: true }\n classroom: {\n deleted_at: { _is_null: true }\n school_year: { start_at: { _lte: now }, end_at: { _gte: now } }\n }\n }\n ) {\n classroom {\n classroom_id: id\n school_year_id\n grade {\n grade_id: id\n educational_level_id\n }\n program_id\n }\n }\n profile_student {\n user_code\n is_first_child\n student_status\n program_educational_id\n program_map_educational_level {\n program_id\n program {\n name\n }\n educational_level_id\n educational_level {\n name\n }\n }\n }\n }\n }\n";