diff --git a/packages/insomnia-app/app/ui/components/graph-ql-explorer/graph-ql-explorer-type.js b/packages/insomnia-app/app/ui/components/graph-ql-explorer/graph-ql-explorer-type.js index fdc58346d..962b75ec0 100644 --- a/packages/insomnia-app/app/ui/components/graph-ql-explorer/graph-ql-explorer-type.js +++ b/packages/insomnia-app/app/ui/components/graph-ql-explorer/graph-ql-explorer-type.js @@ -1,5 +1,6 @@ // @flow import * as React from 'react'; +import { SvgIcon } from 'insomnia-components'; import GraphQLExplorerTypeLink from './graph-ql-explorer-type-link'; import autobind from 'autobind-decorator'; import MarkdownPreview from '../markdown-preview'; @@ -7,6 +8,7 @@ import GraphQLExplorerFieldLink from './graph-ql-explorer-field-link'; import type { GraphQLField, GraphQLSchema, GraphQLType } from 'graphql'; import { GraphQLInterfaceType, GraphQLObjectType, GraphQLUnionType } from 'graphql'; import GraphQLDefaultValue from './graph-ql-default-value'; +import Tooltip from '../../components/tooltip'; type Props = { onNavigateType: (type: Object) => void, @@ -110,11 +112,20 @@ class GraphQLExplorerType extends React.PureComponent { ); + const isDeprecated = field.isDeprecated; const description = field.description; return (
  • {fieldLink} {argLinks}: {typeLink} + {isDeprecated && ( + + + + )} {description && (