1
0
mirror of https://github.com/actix/examples synced 2025-06-26 09:17:41 +02:00

format markdown

This commit is contained in:
Rob Ede
2022-03-06 00:43:10 +00:00
parent f27cc4b6b4
commit e239414a55
31 changed files with 165 additions and 188 deletions

View File

@ -1,7 +1,6 @@
# GraphQL using Juniper
[Juniper](https://github.com/graphql-rust/juniper) integration for Actix Web.
If you want more advanced example, see also the [juniper-advanced example].
[Juniper](https://github.com/graphql-rust/juniper) integration for Actix Web. If you want more advanced example, see also the [juniper-advanced example].
[juniper-advanced example]: https://github.com/actix/examples/tree/master/graphql/juniper-advanced
@ -37,9 +36,7 @@ _Result:_
"data": {
"human": {
"name": "Luke",
"appearsIn": [
"NEW_HOPE"
],
"appearsIn": ["NEW_HOPE"],
"homePlanet": "Mars"
}
}
@ -50,7 +47,9 @@ _Mutation example:_
```graphql
mutation {
createHuman(newHuman: {name: "Fresh Kid Ice", appearsIn: EMPIRE, homePlanet: "earth"}) {
createHuman(
newHuman: { name: "Fresh Kid Ice", appearsIn: EMPIRE, homePlanet: "earth" }
) {
id
name
appearsIn
@ -67,9 +66,7 @@ _Result:_
"createHuman": {
"id": "1234",
"name": "Fresh Kid Ice",
"appearsIn": [
"EMPIRE"
],
"appearsIn": ["EMPIRE"],
"homePlanet": "earth"
}
}