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
graphql.NoCache[T,T2] struct implements graphql.Cache[T] interface but it is not assignable to any of the internally used fields. For example it is not possible to assign NoCache as apq cache. There's no way to instantiate NoCache with value type values. Only with pointer values.
Specifying key type on graphql.NoCache[T,T2], // NoCache[T any, T2 *T] forces the value of cache to be a pointer of key type. For example: graphql.NoCache[string, *string].
graphql.NoCache[T,T2]
struct implementsgraphql.Cache[T]
interface but it is not assignable to any of the internally used fields. For example it is not possible to assignNoCache
as apq cache. There's no way to instantiateNoCache
with value type values. Only with pointer values.Specifying key type on
graphql.NoCache[T,T2], // NoCache[T any, T2 *T]
forces the value of cache to be a pointer of key type. For example:graphql.NoCache[string, *string]
.A code snippet like bellow is not possible:
Internally all caches use string type keys.
Type definitions were changed with #3179
The text was updated successfully, but these errors were encountered: