You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							31 lines
						
					
					
						
							932 B
						
					
					
				
			
		
		
	
	
							31 lines
						
					
					
						
							932 B
						
					
					
				import gql from 'graphql-tag';
 | 
						|
 | 
						|
export const GET_COURSE_REL_USER = gql`
 | 
						|
    query getCourses($user: String!) {
 | 
						|
        courseRelUsers(user: $user) {
 | 
						|
            edges {
 | 
						|
                node {
 | 
						|
                    course {
 | 
						|
                        _id,
 | 
						|
                        title,
 | 
						|
                        illustrationUrl
 | 
						|
                        users(status: 1, first: 4) {
 | 
						|
                            edges {
 | 
						|
                                node {
 | 
						|
                                    id
 | 
						|
                                    status
 | 
						|
                                    user {
 | 
						|
                                        illustrationUrl,
 | 
						|
                                        username,
 | 
						|
                                        fullName
 | 
						|
                                    }
 | 
						|
                                }
 | 
						|
                            }
 | 
						|
                        }
 | 
						|
                    }
 | 
						|
                }
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
`;
 | 
						|
 | 
						|
 |