picosam
05/26/2018, 9:50 AMJson
fields, effectively having an SDL such as:
type User {
photos: [Json!]!
}
I know I would not be able to filter on images in that case, but this is not something I need as I would always be retrieving all user images. Any other known limitations or pitfalls to this anyone is aware of?nilan
05/26/2018, 10:04 AMnilan
05/26/2018, 10:05 AMnilan
05/26/2018, 10:06 AMtype User {
photos: [Photo!]!
}
type Photo {
metadata: Json!
}
nilan
05/26/2018, 10:06 AMpicosam
05/26/2018, 10:09 AMpicosam
05/26/2018, 10:09 AMpicosam
05/26/2018, 10:11 AMpicosam
05/26/2018, 10:11 AMnilan
05/26/2018, 10:11 AMnilan
05/26/2018, 10:11 AMnilan
05/26/2018, 10:11 AMpicosam
05/26/2018, 10:12 AMpicosam
05/26/2018, 10:13 AMpicosam
05/26/2018, 10:13 AMpicosam
05/26/2018, 10:14 AMpicosam
05/26/2018, 10:14 AMnilan
05/26/2018, 10:15 AMpicosam
05/26/2018, 10:16 AMpicosam
05/26/2018, 10:16 AMnilan
05/26/2018, 10:16 AMnilan
05/26/2018, 10:16 AMpicosam
05/26/2018, 10:17 AMnilan
05/26/2018, 10:17 AMpicosam
05/26/2018, 10:17 AMnilan
05/26/2018, 10:17 AMusers {
photos { metadata }
}
places { photos { metdata } }
nilan
05/26/2018, 10:17 AMnilan
05/26/2018, 10:18 AMphotos {
place { id }
}
or
photos {
user { id }
}
picosam
05/26/2018, 10:18 AMnilan
05/26/2018, 10:19 AMtype User {
photos: [Photo!]!
}
type Place {
photos: [Photo!]!
}
type Photo {
metadata: Json
}
nilan
05/26/2018, 10:19 AMPhoto
to User
and Place
picosam
05/26/2018, 10:19 AMnilan
05/26/2018, 10:19 AMnilan
05/26/2018, 10:19 AMpicosam
05/26/2018, 10:20 AMnilan
05/26/2018, 10:20 AMI guess it just doesn’t feel right to put a relation on a type when a single record of that type would be related either to a User or to a Place, but never to bothis somewhat taken care of with this
picosam
05/26/2018, 10:21 AMnilan
05/26/2018, 10:21 AMnilan
05/26/2018, 10:21 AMpicosam
05/26/2018, 10:22 AMnilan
05/26/2018, 10:22 AMnilan
05/26/2018, 10:22 AMpicosam
05/26/2018, 10:22 AMpicosam
05/26/2018, 10:22 AMnilan
05/26/2018, 10:23 AMnilan
05/26/2018, 10:24 AM