Nested name field
I'm trying to resolve an image on level n and want to have the resulting sharp object to be on the same level n but I realized that this doesn't seem to work as the sharp object always appears on the first level.
This is what I want to achieve:
imagePath: "author.profile_image",
name: "author.featureImageSharp",
But this config fails as punctuation on the name prop doesn't seem to be allowed.
Is there actually a way to do it or is this not supported?
@jsbrain Oh that looks like a cool use case! That is not currently supported.
Would really love to have that feature. Would be incredibly useful to me (and probably others) 😀 Do you see any obstacles implementing this?
@jsbrain Just time! 😆 The get function is already used for this use case, but in the opposite direction. I believe the set function from lodash would do what we need when setting the field. See here for its docs: https://lodash.com/docs/4.17.15#set.
@graysonhicks Yeah same same ... 😆 Ok cool I might look into it and create a PR if I find the time and get something useful there :)