Similar to the other relational fields, or the image field, provide a return format option for just an array of attachment ids.
When you have a lot of image sizes registered the array for each photo can get quite large.
We are using get_field('flexible_content_field')
which contains layouts that contain gallery fields so can’t use the get_field('gallery_field', null, false)
to get the raw data.