Skip to content

Commit c24094a

Browse files
committed
improve examples
1 parent 30a6cc1 commit c24094a

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

README.md

+9-14
Original file line numberDiff line numberDiff line change
@@ -22,35 +22,30 @@ Yoga comes with a graphiQL interface, so open http://localhost:4000/graphql and
2222
## Graphql Requests
2323

2424
```graphql
25-
# Examples with gpt
26-
query getGpt {
27-
chatGpt(question: "What is the most performant framework?") {
25+
subscription chat_stream {
26+
chat(question: "What is the best framework?") {
2827
question
2928
answer
3029
}
3130
}
3231

33-
subscription steamGpt {
34-
chatGpt(question: "What is the most performant framework?") {
35-
question
32+
subscription animals_stream {
33+
animals(question: "Parrot") {
3634
answer
37-
done
3835
}
3936
}
4037

41-
# Examples with davinci
42-
query animal {
43-
animals(question: "dog") {
38+
query chat {
39+
chat(question: "What is the best framework?") {
4440
question
4541
answer
4642
}
4743
}
4844

49-
subscription animalStream {
50-
animals(question: "tiger") {
51-
question
45+
query animals {
46+
animals(question: "Dog") {
5247
answer
53-
done
5448
}
5549
}
50+
5651
```

0 commit comments

Comments
 (0)