yantakus
10/29/2018, 5:57 PMCannot query field "snippet" on type "Video". This is obvious, because I don’t have this field in my Video type. Do I have to type remote data as well? If yes, how do I type the following data structure:
thumbnails: {
default: {
url: "<https://i.ytimg.com/vi/Tro6SQJJ8tA/default.jpg>",
width: 120,
height: 90
},
medium: {
url: "<https://i.ytimg.com/vi/Tro6SQJJ8tA/mqdefault.jpg>",
width: 320,
height: 180
},
high: {
url: "<https://i.ytimg.com/vi/Tro6SQJJ8tA/hqdefault.jpg>",
width: 480,
height: 360
},
standard: {
url: "<https://i.ytimg.com/vi/Tro6SQJJ8tA/sddefault.jpg>",
width: 640,
height: 480
},
maxres: {
url: "<https://i.ytimg.com/vi/Tro6SQJJ8tA/maxresdefault.jpg>",
width: 1280,
height: 720
}
},
?Harshit
10/29/2018, 6:31 PMHarshit
10/29/2018, 6:31 PM