:wave: Hello hello, very quick one regarding norma...
# apollo-kotlin
m
👋 Hello hello, very quick one regarding normalised cache. If Im defining fragments on my query do I set the key (@typePolicy) To the fragment or still to the main object?
m
@typePolicy
is only for extending your schema, you can't have it in executable documents like fragments or queries
m
Yeah my question is more is I define
extend type X @typePolicy(keyFields: "id")
On the Object type or on the defined fragment?
(If that makes sense?)
m
fragments do not exist in the schema so you can only extend object types
m
excellent, cristal clear
thanks!
m
sure thing!