Skip to content

Commit b4dd807

Browse files
authored
Update README.md
1 parent 7994bb8 commit b4dd807

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,40 @@ There is a sample web api project hosting the GraphiQL interface. `yarn install
3131
> yarn start
3232
```
3333
![](http://i.imgur.com/2uGdVAj.png)
34+
```
35+
Query Statement
36+
37+
query StarWars($idValue: String!){
38+
human(id:$idValue){
39+
__typename
40+
name
41+
homePlanet
42+
appearsIn
43+
friends{
44+
name
45+
}
46+
}
47+
}
48+
49+
query Values
50+
{
51+
"idValue": "1"
52+
}
3453
54+
Mutation Statment
55+
mutation StarWars($idValue: String!,$nameValue: String!){
56+
human(id:$idValue,name:$nameValue){
57+
id
58+
name
59+
}
60+
}
61+
62+
query Values
63+
{
64+
"idValue": "1",
65+
"nameValue": "Luke Skywalker"
66+
}
67+
```
3568
## Usage
3669

3770
Define your schema with a top level query object then execute that query.

0 commit comments

Comments
 (0)