graphql context.auth.user.id is null

@am2222 Majid Hojati
Tue, 10 Feb 2026 02:57:32 +0000

Hi,
so I started to setup graphql with latest version of parse-server. here is my query

query GetCurrentUser {
                viewer {
                  sessionToken
                  user {
                    objectId
                  }
                }
              }

and this is my header

{"X-Parse-Application-Id":"myAppId","X-Parse-Session-Token":"r:75db68f1cc3....a5fbe43b718bf3f4"}

for some reason it fails at here

const response = await _rest.default.find(config, context.auth, '_User',
  // Get the user it self from auth object
  {
    objectId: context.auth.user.id
  }, options, info.clientVersion, info.context);

the value for context.auth.user is undefined! I tried to debug it but seems this value is comming from req.auth! I am wondering if there is any bugs somewhere?