DEV Community

Discussion on: Active Storage meets GraphQL Pt. 2: Exposing attachment URLs

such profile image
Adrien Montfort

Apparently you need to use object.object to get the ActiveRecord object! (and object.object.class for its class).

palkan_tula profile image
Vladimir Dementyev Author

Which version of graphql gem it is? Probably, that's the reason. The code I posted works fine for us in 1.9.4.

Thread Thread
such profile image
Adrien Montfort • Edited on

I tried with 1.9.3 and 1.9.6...