Skip to content

Commit

Permalink
don't force rawID to be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
tgriesser committed Feb 21, 2023
1 parent 405be79 commit 2362fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-relay/src/field-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fieldBuilderProto.node = function node({ id, ...options }) {
typeof rawID === 'string'
? internalDecodeGlobalID(this.builder, rawID, context, info, true)
: rawID && {
id: String(rawID.id),
id: rawID.id,
typename: this.builder.configStore.getTypeConfig(rawID.type).name,
};

Expand Down

0 comments on commit 2362fc1

Please sign in to comment.