We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 984cdc0 commit 551c0c5Copy full SHA for 551c0c5
README.md
@@ -21,42 +21,18 @@ FraQL brings component isolation and automocking into your application. You can
21
22
## Example
23
24
-**Without FraQL**
25
-
26
-```js
27
-import gql from 'graphql-tag'
28
29
-const fragment = gql`
30
- fragment MyFragment on Article {
31
- title
32
- description
33
- }
34
-`
35
36
-const query = gql`
37
- query Articles {
38
- articles {
39
- id
40
- ...MyFragment
41
42
43
44
- ${fragment}
45
46
-```
47
48
-**With FraQL**
49
50
```js
51
import gql from 'fraql'
52
+// Create fragment without naming it
53
const fragment = gql`
54
fragment _ on Article {
55
title
56
description
57
}
58
`
59
+// Just use it in your query!
60
const query = gql`
61
query Articles {
62
articles {
0 commit comments