GraphQL Cookbook

Getting a logged user

5min

Getting a logged user through the Parse GraphQL API

Problem

You want to get a logged user’s data from your backend through the Parse GraphQL API.

Solution

Using the Parse GraphQL API, you can get a logged user’s data just by sending the user’s sessionToken through the X-Parse-Session-Token header (as described in the authenticating a user recipe) and calling the me query.

Version Information

Depending on the version of Parse you choose to run, the GraphQL queries, mutations and results will be slightly different. Please choose the correct example along with the Parse version you are running.

Parse Server 4.4.0 and later

Request
Response