UNPKG
graphql-query-compress
Version:
latest (1.2.4)
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.9.12
0.9.11
0.9.10
0.9.9
0.9.8
0.9.7
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
Compress a GraphQL Query String
github.com/rse/graphql-query-compress
rse/graphql-query-compress
graphql-query-compress
/
sample.js
13 lines
(10 loc)
•
159 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
compress =
require
(
"."
)
let
query =
`{ Accounts { id realname username } }`
query =
compress
(query)
console
.
log
(query)