-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for fields in LiveQuery #3671
Comments
I just went looking through JS SDK for fields support on live query subscriptions. Can we just add an additional 'options' or 'fields' arg to 'subscribe' function in LiveQueryClient.js, and upstream subscribe functions that call it? |
It would require some serverside work, i’ll Be happy to review a Pull Request :) that would be easier than the CLP’s |
Oh, the server isn't complete either? Ok, will add to my future dev list :) |
As far as I can tell Parse Server is using subscriptionInfo.fields if specified to filter the response object, before pushing it to the client. Do you know for a fact that the server needs dev for this? lib/LiveQuery/Client.js
|
@TimNZ we could always use more devs ;) |
Ok, still on my todo list :) |
Submitted pull. |
Issue Description
Parse LiveQuery specifications are supposed to take a fields in the query. Parse server does not handle these fields, nor do the iOS and Android clients.
https://github.com/ParsePlatform/parse-server/wiki/Parse-LiveQuery-Protocol-Specification
https://github.com/ParsePlatform/ParseLiveQuery-iOS-OSX/blob/master/Sources/ParseLiveQuery/Internal/QueryEncoder.swift
parse-community/ParseLiveQuery-Android#18
Steps to reproduce
Create a Parse Query with fields:
Expected Results
Expect only fields to come out.
Actual Outcome
All fields are returned.
Environment Setup
Server
Database
Logs/Trace
Include all relevant logs. You can turn on additional logging by configuring VERBOSE=1 in your environment.
The text was updated successfully, but these errors were encountered: