@urql/exchange-graphcache
Advanced tools
Comparing version 1.0.0-rc.2 to 1.0.0-rc.3
@@ -414,3 +414,3 @@ import { Kind, buildClientSchema, isNullableType, isNonNullType, isListType, GraphQLObjectType, GraphQLInterfaceType, GraphQLUnionType } from "graphql"; | ||
var key = null !== entityKey ? entityKey : parentFieldKey; | ||
if ("string" != typeof data.__typename || void 0 !== ctx.store.keys[data.__typename] || null !== entityKey) { | ||
if ("string" != typeof data.__typename || void 0 === ctx.store.keys[data.__typename] && null === entityKey) { | ||
"production" !== process.env.NODE_ENV && warning(!1, "Invalid key: The GraphQL query at the field at `" + parentFieldKey + "` has a selection set, but no key could be generated for the data at this field.\nYou have to request `id` or `_id` fields for all selection sets or create a custom `keys` config for `" + data.__typename + "`.\nEntities without keys will be embedded directly on the parent entity. If this is intentional, create a `keys` config for `" + data.__typename + "` that always returns null."); | ||
@@ -417,0 +417,0 @@ } |
@@ -418,3 +418,3 @@ "use strict"; | ||
var key = null !== entityKey ? entityKey : parentFieldKey; | ||
if ("string" != typeof data.__typename || void 0 !== ctx.store.keys[data.__typename] || null !== entityKey) { | ||
if ("string" != typeof data.__typename || void 0 === ctx.store.keys[data.__typename] && null === entityKey) { | ||
"production" !== process.env.NODE_ENV && warning(!1, "Invalid key: The GraphQL query at the field at `" + parentFieldKey + "` has a selection set, but no key could be generated for the data at this field.\nYou have to request `id` or `_id` fields for all selection sets or create a custom `keys` config for `" + data.__typename + "`.\nEntities without keys will be embedded directly on the parent entity. If this is intentional, create a `keys` config for `" + data.__typename + "` that always returns null."); | ||
@@ -421,0 +421,0 @@ } |
{ | ||
"name": "@urql/exchange-graphcache", | ||
"version": "1.0.0-rc.2", | ||
"version": "1.0.0-rc.3", | ||
"description": "A normalized and configurable cache exchange for urql", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/FormidableLabs/urql-exchange-graphcache", |
@@ -264,4 +264,3 @@ import { warning } from '../helpers/warning'; | ||
typeof data.__typename !== 'string' || | ||
ctx.store.keys[data.__typename] !== undefined || | ||
entityKey !== null | ||
(ctx.store.keys[data.__typename] === undefined && entityKey === null) | ||
) { | ||
@@ -268,0 +267,0 @@ warning( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
546039
6098