GithubHelp home page GithubHelp logo

Comments (5)

andrewimm avatar andrewimm commented on July 20, 2024 1

@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.

parse-github-bot avatar parse-github-bot commented on July 20, 2024

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:

from parse-sdk-js.

wangmengyan95 avatar wangmengyan95 commented on July 20, 2024

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.

neolution avatar neolution commented on July 20, 2024

@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.

neolution avatar neolution commented on July 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.