Skip to content

Commit 03c2f4a

Browse files
author
Jamie Greeff
committed
0.0.2
1 parent 48929ff commit 03c2f4a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ var output = graphqlite.parse(`
3232
}
3333
}
3434
`)
35+
36+
var backToString = graphqlite.stringify(output)
3537
```
3638

3739
In the above example, `output` will be:
@@ -67,15 +69,13 @@ In the above example, `output` will be:
6769
]
6870
```
6971

72+
`stringify` takes the output from `parse` and generates a minified GraphQL string.
73+
7074
## Roadmap
7175
Facebook will be releasing a GraphQL module in the future, but I didn't know what to expect from this
7276
so I created this basic one as an experiment.
7377
Therefore this module could become obselete in the future.
7478

75-
I do plan on adding some additional features though:
76-
- GraphQL generation from object
77-
- Other ideas welcome
78-
7979
## License
8080

8181
Licensed under the MIT License.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphqlite",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "An experimental implementation of Facebook's GraphQL",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)