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
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -269,11 +269,11 @@ export default ArticleCard
269
269
270
270
FraQL offers a drop-in replacement for `graphql-tag` but sometimes you don't use `gql` to define your fragments. As mentioned in [graphql-tag documentation](https://github.com/apollographql/graphql-tag) there are lots of other ways to do it (using Babel, Webpack, etc..).
271
271
272
-
FraQL exposes a function `toInlineFragment`, it transforms a GraphQL fragment into an inline fragment.
272
+
FraQL exposes a function `toInlineFragment` that transforms a GraphQL fragment into an inline fragment.
273
273
274
274
```js
275
275
import { toInlineFragment } from'fraql'
276
-
importgqlfrom'grapql-tag'
276
+
importgqlfrom'graphql-tag'
277
277
importfragmentfrom'./myFragment.gql'
278
278
279
279
constinlineFragment=toInlineFragment(fragment)
@@ -289,9 +289,9 @@ const query = gql`
289
289
290
290
### Mix named and inline fragments
291
291
292
-
Sometimes you may want to have the best of the two worlds, use a name fragment in one query and an inline fragment in another.
292
+
Sometimes you may want to have the best of the two worlds, use a named fragment in one query and an inline fragment in another.
293
293
294
-
For this specific use-case, FraQL exposes the original document:
294
+
For this specific use-case FraQL exposes the original document:
295
295
296
296
```js
297
297
importgqlfrom'fraql'
@@ -316,7 +316,7 @@ const query = gql`
316
316
317
317
### Use custom mocks
318
318
319
-
Mocking feature of FraQL is build on top of [grapql-tools](https://www.apollographql.com/docs/graphql-tools/), it means you can [customize all your mocks](https://www.apollographql.com/docs/graphql-tools/mocking.html#Customizing-mocks).
319
+
Mocking feature of FraQL is build on top of [graphql-tools](https://www.apollographql.com/docs/graphql-tools/), it means you can [customize all your mocks](https://www.apollographql.com/docs/graphql-tools/mocking.html#Customizing-mocks).
320
320
321
321
You can define global mocks when you create the mocker:
0 commit comments