Skip to content

Commit e84a05b

Browse files
authored
Update README.md
1 parent 521f676 commit e84a05b

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

README.md

+58
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,65 @@ query {
259259
```
260260

261261
- Get user profile: Retrieve information about the currently logged-in user.
262+
```graphql
263+
query {
264+
me {
265+
id
266+
email
267+
password
268+
username
269+
posts {
270+
title
271+
}
272+
}
273+
}
274+
```
275+
Headers:
276+
277+
```json
278+
query {
279+
me {
280+
id
281+
email
282+
password
283+
username
284+
posts {
285+
title
286+
}
287+
}
288+
}
289+
```
262290
- Get user's own posts: Retrieve a list of blog posts created by the currently logged-in user.
291+
```graphql
292+
query {
293+
me {
294+
posts {
295+
title
296+
content
297+
category {
298+
name
299+
}
300+
}
301+
}
302+
}
303+
```
304+
```json
305+
{
306+
"data": {
307+
"me": {
308+
"posts": [
309+
{
310+
"title": "moon and mars",
311+
"content": "i want to be first person walked throught mars",
312+
"category": {
313+
"name": "food"
314+
}
315+
}
316+
]
317+
}
318+
}
319+
}
320+
```
263321
- Get user's favorite posts: Retrieve a list of blog posts marked as favorites by the currently logged-in user.
264322
- Get recommended posts: Retrieve a list of recommended blog posts based on user preferences or behavior.
265323
- Get posts by category: Retrieve all blog posts belonging to a specific category.

0 commit comments

Comments
 (0)