Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should have a getOrCreate helper method #84

Open
thgreasi opened this issue Jul 12, 2019 · 0 comments
Open

Should have a getOrCreate helper method #84

thgreasi opened this issue Jul 12, 2019 · 0 comments

Comments

@thgreasi
Copy link
Contributor

This is similar to the upsert helper method. In this case getOrCreate would POST the body and if a 409 unique constrain error is thrown it will try to GET the resource.

See: https://www.flowdock.com/app/rulemotion/resin-tech/threads/9lYeLTnspE03IDeC40ovlB9iTm0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant