UNPKG
graphql-mocks
Version:
latest (0.11.4)
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.0
0.9.2
0.9.1
0.9.0
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.2
0.7.1
0.7.0
0.6.0
0.5.2
0.5.1
0.4.2
0.4.1
0.4.0
0.3.0
0.2.0
Tools for setting up graphql test resolvers
graphql-mocks/graphql-mocks
graphql-mocks
/
es
/
graphql
/
type-utils
/
is-internal-type.mjs
13 lines
(12 loc)
•
287 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{ isNamedType }
from
'graphql'
;
function
isInternalType
(
type
) {
if
(
isNamedType
(
type
)) {
type
=
type
.
name
; }
if
(
typeof
type
!==
'string'
) {
return
false
; }
return
type
.
startsWith
(
'__'
); }
export
{ isInternalType };
//# sourceMappingURL=is-internal-type.mjs.map