Comments (5)
@neolution can you look at the actual network request back-and-forth to api.parse.com, and copy any relevant information here?
You should see a payload go out with the "keys"
field set -- this is where we send the data from calling .select()
on a query. Then, take a look at the response, and see if the server is actually sending all the data back.
JS SDK 1.6 features single instance objects -- that is, any two instances of the same object share the same attributes in memory. If you had a full copy of an object locally, and then queried for another copy of it, the new copy would be inflated with all the locally known fields. .select()
is useful for reducing the number of bytes sent over the wire, but we intentionally don't create an object with fewer attributes.
from parse-sdk-js.
Thank you for your feedback. We prioritize issues that have clear and concise repro steps. Please see our Bug Reporting Guidelines about what information should be added to this issue.
Please try the latest SDK. Our release notes have details about what issues were fixed in each release.
In addition, you might find the following resources helpful:
- Documentation: https://www.parse.com/docs
- Google Groups: https://groups.google.com/forum/#!forum/parse-developers
- Stack Overflow: http://stackoverflow.com/tags/parse.com
from parse-sdk-js.
Hi @neolution, I do not quite get your point. What do you mean by will be ignored?
Ideally, your code should always print the id and title. You mean in 1.5.0 it works fine but in 1.6.4 you can not see the title?
from parse-sdk-js.
@wangmengyan95 : Yes, with 1.6.4 I always get all fields from the class although I set query.select("title");. With 1.5.0 I only get the "title" => this is the expected behaviour,
From the docs: "query.select(keys)"
Restricts the fields of the returned Parse.Objects to include only the provided keys.
from parse-sdk-js.
@andrewimm : You are right. If I previously run the query without query.select(..)
and afterwards I set query.select("title")
and run the same query again all fields are available.
But if I first run query.select("title")
then I only get the selected keys.
Thank you for your help. I could not read this out of the documentation.
from parse-sdk-js.
Related Issues (20)
- Expand TypeScript support HOT 9
- Lock closed threads HOT 1
- saveEventually / EventuallyQueue doesn't work when killing server -> saveEventually object -> restarting server HOT 4
- API Reference Documentation not updated HOT 1
- SDK throws error in web contexts where calling into `window.indexedDB` is prohibited, but not undefined on the window HOT 2
- Calling `.add` multiple times on relations is broken HOT 4
- Refused to get unsafe header "access-control-expose-headers" on Chrome HOT 17
- Allow for REST Content Override for Server protection HOT 2
- Align currently supported Node.js version HOT 4
- `Parse.User.verifyPassword` does not pass request options to server HOT 5
- Parse SDK 4.3.1 is not working with React Native / Expo HOT 9
- Expo RN and ParseLiveQuery EventEmitter error HOT 13
- Cannot set ACL from JSON HOT 1
- Infinite loop in `encode.js` HOT 5
- Missing test for `Parse.User.verifyPassword` option `ignoreEmailVerification` HOT 2
- `Parse.Object.set` sliently handles validation errors HOT 1
- TypeError: attempted to use private field on non-instance, js engine: hermes HOT 3
- Installation support for JS SDK HOT 4
- Allow to run queries through LiveQueryClient (Parse Server issue #9086) HOT 5
- Local state of objects not correct if setting multiple properties HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parse-sdk-js.