UNPKG
charlotte-graphql
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
Generates GraphQL type definitions and resolvers off of a concise spec.
charlotte-graphql
/
test
/
lib
/
types.js
20 lines
(18 loc)
•
293 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'use strict'
;
module
.
exports
= {
TestPerson
: {
name
:
'String!'
,
x
:
'Int'
},
TestCompany
: {
name
:
'String!'
},
TestFriendship
: {
person1
:
'TestPerson!'
,
person2
:
'TestPerson!'
},
TestEmployment
: {
person
:
'TestPerson!'
,
company
:
'TestCompany!'
} };