diff --git a/packages/graphql-playground-react/src/components/Playground/DocExplorer/TypeLink.tsx b/packages/graphql-playground-react/src/components/Playground/DocExplorer/TypeLink.tsx index cd5d43bcf..40cc4d6e7 100644 --- a/packages/graphql-playground-react/src/components/Playground/DocExplorer/TypeLink.tsx +++ b/packages/graphql-playground-react/src/components/Playground/DocExplorer/TypeLink.tsx @@ -166,7 +166,7 @@ class TypeLink extends React.Component< {type.defaultValue !== undefined ? ( {' '} - = {`${type.defaultValue}`} + = {`${JSON.stringify(type.defaultValue, null, 2)}`} ) : ( undefined