cacheKeyForObject

Returns a CacheKey for the given object or null if the object doesn't have an id

Parameters

obj

a Map representing the object. The values in the map can have the same types as the ones in Record

context

the context in which the object is normalized. In most use cases, the id should not depend on the normalization context. Only use for advanced use cases.