codemirror-graphql
Advanced tools
Comparing version 0.12.2 to 0.12.3
@@ -6,2 +6,8 @@ # Change Log | ||
## [0.12.3](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.12.2...codemirror-graphql@0.12.3) (2020-10-20) | ||
### Bug Fixes | ||
- **codemirror-graphql:** give interface field name suggestions ([#1695](https://github.com/graphql/graphiql/issues/1695)) ([669b301](https://github.com/graphql/graphiql/commit/669b3013fc679eca7c4e5c8ed6b0cd2fb2dbf2dc)) | ||
## [0.12.2](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.12.2-alpha.2...codemirror-graphql@0.12.2) (2020-09-18) | ||
@@ -8,0 +14,0 @@ |
@@ -14,3 +14,3 @@ /** | ||
import { canUseDirective, getDefinitionState, getFragmentDefinitions, getTypeInfo, hintList, objectValues } from 'graphql-language-service-interface'; | ||
import { assertAbstractType, doTypesOverlap, getNamedType, isAbstractType, isCompositeType, isInputType, isObjectType, GraphQLBoolean, GraphQLEnumType, GraphQLInterfaceType, GraphQLSchema, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef } from 'graphql'; | ||
import { assertAbstractType, doTypesOverlap, getNamedType, isAbstractType, isCompositeType, isInputType, isObjectType, GraphQLBoolean, GraphQLEnumType, GraphQLInterfaceType, GraphQLSchema, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, isInterfaceType } from 'graphql'; | ||
@@ -171,3 +171,3 @@ /** | ||
const parentType = typeInfo.parentType; | ||
const fields = isObjectType(parentType) && 'getFields' in parentType ? objectValues(parentType.getFields()) : []; | ||
const fields = isObjectType(parentType) || isInterfaceType(parentType) ? objectValues(parentType.getFields()) : []; | ||
@@ -174,0 +174,0 @@ if (isCompositeType(parentType)) { |
@@ -179,3 +179,3 @@ "use strict"; | ||
const parentType = typeInfo.parentType; | ||
const fields = (0, _graphql.isObjectType)(parentType) && 'getFields' in parentType ? (0, _graphqlLanguageServiceInterface.objectValues)(parentType.getFields()) : []; | ||
const fields = (0, _graphql.isObjectType)(parentType) || (0, _graphql.isInterfaceType)(parentType) ? (0, _graphqlLanguageServiceInterface.objectValues)(parentType.getFields()) : []; | ||
@@ -182,0 +182,0 @@ if ((0, _graphql.isCompositeType)(parentType)) { |
{ | ||
"name": "codemirror-graphql", | ||
"version": "0.12.2", | ||
"version": "0.12.3", | ||
"description": "GraphQL mode and helpers for CodeMirror.", | ||
@@ -68,3 +68,3 @@ "contributors": [ | ||
}, | ||
"gitHead": "71ee5fa6d57d55c231925601f4dcbf6c1824b373" | ||
"gitHead": "96a387b4b205780d11add31a6dbe720cd534a933" | ||
} |
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
172537
3825