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.

Getting existing record on creation

See original GitHub issue

I get the existing record {id:1, "user"} on creation await User.create({name:"user1"}) while the actual created record {id:4, name:“user1”} is shown in User.all() with sqlite db. image

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
borsemayur2commented, Apr 26, 2021

Hey @borsemayur2,

Could you please use master and let us know if #247 has fixed your issue?

Thanks 😃

Works with master. Thanks @eveningkid @stillalivx

2reactions
stillalivxcommented, Apr 26, 2021

Okay, thanks. I’ll fix it when @eveningkid merges a pending pull request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Updating an existing record while create a new record in ...
I am trying to update an existing record when I am creating a record on that same object. Example: I have a custom...
Read more >
Updating existing record creating new account in salesforce
1 Answer 1 · In EventmethodBefore method, I tried fetching all the trigger.new records whose MettingUid field value is alraedy present in SF....
Read more >
Set up rules to automatically create or update records ...
Select Automatic Record Creation and Update Rules. To create a record creation and update rule, select New. -OR-. To edit an existing rule, ......
Read more >
Updating the existing record instead of inserting - ServiceNow
I am querying a existing record in a gliderecord, changing a field in the loop and inserting it. This, instead of creating a...
Read more >
Creating records from existing records - IBM
Procedure · Display the record from which you want to create the related record. · Select the Create > Record Type action where...
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