Skip to content

Commit 3fa9fc1

Browse files
authored
Update README.md
1 parent ee05ea5 commit 3fa9fc1

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ The GraphQL playground will be available at `http://localhost:3000/graphql`
7878
Here are some examples of queries and mutations that can be executed using the RestaurantGraphQL API:
7979

8080
### Query for restaurants in a specific city
81-
```
81+
82+
```graphql
8283
query {
8384
restaurants(query: {city: "New York"}) {
8485
id
@@ -95,7 +96,8 @@ query {
9596
```
9697

9798
### Query for a specific restaurant and its details
98-
```
99+
100+
```graphql
99101
query {
100102
restaurant(id: "12345") {
101103
id
@@ -120,7 +122,8 @@ query {
120122
```
121123

122124
### Query for a list of foods offered by a restaurant
123-
```
125+
126+
```graphql
124127
query {
125128
foods(restaurantId: "12345", pagination: {limit: 10, skip: 0}) {
126129
id
@@ -132,7 +135,8 @@ query {
132135
```
133136

134137
### Mutation to create a new restaurant
135-
```
138+
139+
```graphql
136140
mutation {
137141
createRestaurant(input: {
138142
name: "New Restaurant",
@@ -165,7 +169,8 @@ mutation {
165169
```
166170

167171
### Mutation to update an existing restaurant
168-
```
172+
173+
```graphql
169174
mutation {
170175
updateRestaurant(input: {
171176
id: "12345",
@@ -180,7 +185,8 @@ mutation {
180185
```
181186

182187
### Mutation to delete a food item
183-
```
188+
189+
```graphql
184190
mutation {
185191
deleteFood(id: "12345")
186192
}
@@ -270,11 +276,12 @@ Roles:
270276

271277
Authentication uses JWT tokens.
272278

273-
Let me know if you have any other questions!
274279
## Contributing
275280

276281
If you encounter any issues or have suggestions for improvements, please submit an issue or a pull request to the GitHub repository.
277282

278283
## License
279284

280285
The RestaurantGraphQL API is open-source and released under the GPL-V3.0 License. Feel free to use, modify, and distribute the code as per the terms of the license.
286+
287+
Copyright 2023, Max Base

0 commit comments

Comments
 (0)