File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments