Skip to content

Commit

Permalink
Fix check for wether type is client type
Browse files Browse the repository at this point in the history
Reviewed By: kassens

Differential Revision: D21573398

fbshipit-source-id: e3ee653c83b0cd3bce3fc1a669cb4c34885a9f5a
  • Loading branch information
Juan Tejada authored and facebook-github-bot committed May 14, 2020
1 parent 2a3a802 commit 1ccf069
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/relay-compiler/core/Schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -1287,12 +1287,8 @@ class Schema {
}

isServerType(type: TypeID): boolean {
if (isObject(type)) {
return type.isClient === false;
} else if (isEnum(type)) {
return type.isClient === false;
}
return true;
const unwrapped = unwrap(type);
return unwrapped.isClient === false;
}

isServerField(field: FieldID): boolean {
Expand Down

0 comments on commit 1ccf069

Please sign in to comment.