Skip to content

Commit 0e02c26

Browse files
update Readme
1 parent 1999f74 commit 0e02c26

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

README.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Roadmap
4646
- [x] Parser
4747
- [x] Query validation
4848
- [x] Schemas / Types
49-
- [ ]Schemas validation
49+
- [ ] Schemas validation
5050
- [x] Query execution
5151
- [x] Arguments
5252
- [ ] Scalar types
@@ -56,7 +56,7 @@ Roadmap
5656
- [ ] Extract variable values
5757
- [ ] Introspection
5858
- [ ] Directives
59-
- [ ] Depth of the query7
59+
- [ ] Depth of the query
6060
- [ ] Middleware
6161

6262
## Contributing
@@ -101,6 +101,28 @@ result:
101101
}
102102
}
103103
```
104+
```julia
105+
query = """
106+
query consulta{
107+
neomatrix{
108+
nombre
109+
linkedin
110+
}
111+
}
112+
113+
query hola{
114+
neomatrix{
115+
nombre
116+
}
117+
}
118+
"""
119+
r = Queryclient("https://neomatrix.herokuapp.com/graphql",query,operationName="hola")
120+
if (r.Info.status == 200) println(r.Data) end
121+
```
122+
result:
123+
```
124+
{"data":{"neomatrix":{"nombre":"Acevedo Maldonado Josue"}}}
125+
```
104126

105127
```julia
106128
using Diana
@@ -197,28 +219,7 @@ else
197219
println(r.Data)
198220
end
199221
```
200-
```julia
201-
query = """
202-
query consulta{
203-
neomatrix{
204-
nombre
205-
linkedin
206-
}
207-
}
208222

209-
query hola{
210-
neomatrix{
211-
nombre
212-
}
213-
}
214-
"""
215-
r = Queryclient("https://neomatrix.herokuapp.com/graphql",query,operationName="hola")
216-
if (r.Info.status == 200) println(r.Data) end
217-
```
218-
result:
219-
```
220-
{"data":{"neomatrix":{"nombre":"Acevedo Maldonado Josue"}}}
221-
```
222223
```julia
223224
query = """
224225
query consulta{
@@ -263,7 +264,7 @@ r = Queryclient(query)
263264
if (r.Info.status == 200) println(r.Data) end
264265
```
265266

266-
### link
267+
### Link
267268
It is possible to get links to the graphql query editor
268269

269270
```julia
@@ -310,7 +311,7 @@ result:
310311
"https://neomatrix.herokuapp.com/graphql?query=query%20consulta%7B%0A%20%20neomatrix%7B%0A%20%20%20%20%20%20nombre%0A%20%20%20%7D%0A%7D%0Aquery%20hola%7B%0A%20%20neomatrix%7B%0A%20%20%20%20%20%20nombre%0A%20%20%20%20%20%20linkedin%0A%20%20%20%20%7D%0A%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20&operationName=consulta"
311312
```
312313

313-
### validating query
314+
### Validating query
314315
It is possible to validate the query locally before sending the request, only basic validations are carried out.
315316
```julia
316317
query = """
@@ -535,4 +536,4 @@ result:
535536
}
536537
}
537538
}
538-
```
539+
```

0 commit comments

Comments
 (0)