UNPKG
@jokio/graphql
Version:
latest (0.2.2)
0.2.2
0.2.1
0.2.0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
High level, pre-configured, GraphQL Server
@jokio/graphql
/
examples
/
simple
/
index.ts
21 lines
(17 loc)
•
253 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import
GraphQL,
{
Module
}
from
'@jokio/graphql'
;
const helloModule:
Module
=
{
typeDefs:
`
extend
type
Query
{
hello:
String!
}
`
,
resolvers:
{
Query:
{
hello:
()
=>
'world'
} } }
GraphQL.run({
modules:
[
helloModule
]
,
port:
4001
})