Quick question about `__typename`. Is this somethi...
# apollo-kotlin
f
Quick question about
__typename
. Is this something that is added automatically by middleware on the back end? Or is it something that back end devs need to add themselves? I ask because I noticed the Star Wars API doesn't return
__typename
for its objects. I'm curious how reliable it is to use as part of a cache key
m
It's a GraphQL meta-field, all the servers must support. Apollo Kotlin adds it automatically during codegen so it's usually quite reliable
2
f
awesome!