You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -75,6 +79,21 @@ GraphQL.js is **isomorphic**. You can use it in both **browser and Node.js**.
75
79
var graphql =require('graphql.js')
76
80
```
77
81
82
+
##### Using with `graphql-tag`
83
+
84
+
`[graphql-tag](https://github.com/apollographql/graphql-tag)` converts GraphQL query strings to AST. You can use `graphql-tag` with GraphQL.js
85
+
86
+
```js
87
+
var gql =require('graphql-tag')
88
+
var graphql =require('graphql.js')
89
+
90
+
// setup...
91
+
92
+
graph.query(gql`query { name }`)
93
+
```
94
+
95
+
> Using `graphql-tag` will not allow you to use _auto declaration_ and _nested fragments_ syntaxes since these are not valid query syntax for GraphQL but only for this library.
96
+
78
97
## Connection
79
98
80
99
Create a simple connection to your GraphQL endpoint.
0 commit comments