question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to perform a put operation?

See original GitHub issue

I’m currently trying to run a put call with entityManager.create, but I’m struggling to find documentation on how to get past the conditional expression and if I should be trying another strategy.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cmaycumbercommented, Oct 18, 2021

Hi @cmaycumber,

Have you checked out the Getting started guide and the API Ref?

Sorry for the late reply. I’ll take another look at the docs.

0reactions
kylegwalshcommented, Oct 25, 2021

@whimzyLive

Thank you for pointing me to that implementation.

I determined that my issue was that I was using the create method without providing any additional options. After you pointed out the implementation, I noticed that the optional options object had an additional overwriteIfExists parameter. Providing that parameter resulted in the PUT behavior that I was expecting.

It may be helpful for others to include mention of that in the documentation next to the where parameter.

Thank you again for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

PUT - HTTP - MDN Web Docs
The HTTP PUT request method creates a new resource or replaces a representation of the target resource with the request payload.
Read more >
How to send PUT Request in Rest Assured - REST API Testing
How to implement a PUT Request using Rest Assured? Create JSON data using Simple JSON library. Send JSON content in the body of...
Read more >
Implement PUT method in Web API - TutorialsTeacher
Learn how to implement put method which handles HTTP PUT request in ASP.NET Web API here.
Read more >
HTTP PUT vs. POST in REST API - Baeldung
In this tutorial, we'll examine two important HTTP methods, PUT and POST, that we frequently use within the REST architecture.
Read more >
What is PUT? Technical topics explained simply - Abstract API
REST APIs perform specific methods of data operations across HTTP: GET - This operation reads information from a record in the database. PUT- ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found