Skip to content

Query select() ignored for subscriptions / live queries #2876

@interaktivarum

Description

@interaktivarum

New Issue Checklist

Issue Description

Query select() seems to be ignored when subscribing to a query. The LiveQuerySubscription _select array is correctly populated but returns the full object. I get select() to work properly for q.first() but not for subscriptions.

Steps to reproduce

const q = new Parse.Query('GameSession')
.equalTo('objectId', id)
.select('story')

const sub = await q.subscribe();

sub.on('update', (parseObj) => {
    console.log('Session updated from subscription', parseObj);
});

Actual Outcome

Received attributes, all class fields:

{
    "game": { ... },
    "story": { ... },
    "createdAt": "2026-01-21T10:08:37.086Z",
    "updatedAt": "2026-01-21T13:08:07.580Z",
}

Expected Outcome

Only receive selected fields (e.g. story) and not game field.

{
    "story": { ... },
    "createdAt": "2026-01-21T10:08:37.086Z",
    "updatedAt": "2026-01-21T13:08:07.580Z",
}

Environment

Server

  • Parse Server version: 6.2.0
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): : Remote service (Back4App)

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 3.6
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Remote service (Back4App)

Client

  • Parse JS SDK version: 8.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions