Skip to content

Commit e8096a9

Browse files
authored
Update README.md
1 parent 67fc70d commit e8096a9

1 file changed

Lines changed: 39 additions & 1 deletion

File tree

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,39 @@
1-
# FirstPHPGraphQL
1+
# FirstPHPGraphQL
2+
3+
## GaphQL Shema
4+
5+
```graphql
6+
type Query {
7+
echo(message: String!): String!
8+
sum(x: Int!, y: Int!): Int!
9+
}
10+
```
11+
12+
## Using
13+
14+
```
15+
php -S localhost:8080 ./graphql.php
16+
```
17+
18+
Open `http://localhost:8080/` at your browser and use.
19+
20+
## Example
21+
22+
```graphql
23+
{
24+
echo(message: "Hello World")
25+
sum(x: 2 y:10)
26+
s2:sum(x: 2 y:1)
27+
s3:sum(x: 2 y:60)
28+
s4:sum(x: 2 y:50)
29+
s5:sum(x: 2 y:100)
30+
}
31+
```
32+
33+
## GraphQL Playground
34+
35+
Installing at arch: `yay graphql-playground-electron`
36+
37+
![](demo.png)
38+
39+
© Copyright Max Base, 2021

0 commit comments

Comments
 (0)