You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed that I hadn't wrote about this yet but it's something I really want from GraphCMS that's missing currently.
It'd be nice to be able to define custom resolvers when fetching data. When you're creating a GQL server you have access to the code so you can write custom resolver logic for individual fields as you need. Since everything is defined via a CMS here you lose out on that power.
Imagine you've got some tiles and someone defined a bunch of images in each one:
Yeah on the PrimeField level. I guess another name is "Computed fields". Because when using a CMS you don't really have access to the code level anymore but may still want to have a simple function/custom resolver... I've no idea what that would look like to be honest but I just know I'm missing it currently and it's on the GraphCMS road map
Noticed that I hadn't wrote about this yet but it's something I really want from GraphCMS that's missing currently.
It'd be nice to be able to define custom resolvers when fetching data. When you're creating a GQL server you have access to the code so you can write custom resolver logic for individual fields as you need. Since everything is defined via a CMS here you lose out on that power.
Imagine you've got some tiles and someone defined a bunch of images in each one:
When querying you want to grab the correct image based on the columns value. In the server it looks something like:
But without the ability to define a custom resolver you have to overfetch data and select the correct one on the frontend after wasting bandwidth.
The text was updated successfully, but these errors were encountered: