Fork me on GitHub
#graphql
<
2022-01-27
>
emccue21:01:40

What is the idiomatic way to pass a non map as the value in a resolver?

emccue21:01:56

We have some opaque domain objects which are records

emccue21:01:17

And the fact that fields can be accessed directly is being detected and bypassing the resolver

orestis04:01:24

Are you defining a resolver that's not being called? That's very surprising behavior.

emccue18:01:44

This turned out to be a false alarm - kinda - in the particular context we missed a :resolver that should have been :resolve

emccue18:01:02

but if our opaque object was sequable there was still an issue

emccue18:01:22

i think we’ve centered on a pattern for it though, so its not a big deal right now

emccue21:01:31

(which should be calling the domain function to extract the property, not use the key directly)