GithubHelp home page GithubHelp logo

Comments (11)

drsounds avatar drsounds commented on July 20, 2024 19

I would like that this become possible with parse.

from parse-sdk-js.

rhuanbarreto avatar rhuanbarreto commented on July 20, 2024 2

parse-community/parse-server#6177

You need to make a request to the REST API to have it working. The JS SDK doesn't yet support it. There's an open issue for it #1097

from parse-sdk-js.

NaturalLam avatar NaturalLam commented on July 20, 2024 1

@rhuanbarreto , does this support in swift API too?

from parse-sdk-js.

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

Thank you for your feedback. We use the issue tracker here to track valid bugs in our SDK. Your question seems to be more about how to use Parse. Could you check out the following resources?

from parse-sdk-js.

andrewimm avatar andrewimm commented on July 20, 2024

Creating objects with custom Ids is not supported behavior.

If you attempt the save above, it'll return from the server with a 404 error code. Saving is an asynchronous process, so .save() returns a Parse.Promise. If you wrote your code like this:

var newsfeed = new Parse.Object("Newsfeed");
newsfeed.id = 'customid';
newsfeed.save().then(function() {
  // on success
}, function(error) {
  // on error
  console.log('an error occurred');
});

you'll find that it prints out 'an error occurred.' The error case of the promise is designed to let developers write custom error handlers.

from parse-sdk-js.

brunocleite avatar brunocleite commented on July 20, 2024

Thanks @andrewimm.
Is there any reason why using custom objectIds is allowed when using the import tool and it is not allowed programatically through the JS SDK?

from parse-sdk-js.

oallouch avatar oallouch commented on July 20, 2024

I have the same issue and plan to use direct mongodb request when creating those objects, then I'll use standard parse.

from parse-sdk-js.

rhuanbarreto avatar rhuanbarreto commented on July 20, 2024

This is possible today!

from parse-sdk-js.

felix-ht avatar felix-ht commented on July 20, 2024

@rhuanbarreto
How?

from parse-sdk-js.

rhuanbarreto avatar rhuanbarreto commented on July 20, 2024

PR #6177

from parse-sdk-js.

rsmets avatar rsmets commented on July 20, 2024

Hmm forgive me, but I am unable to find PR#6177. @rhuanbarreto would you mind providing a link? Thank you!

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.