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

Better define main CRUD ops' return types #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

poltak
Copy link
Member

@poltak poltak commented Jan 22, 2019

Based on what we discussed this a while back on slack:
https://worldbrain.slack.com/archives/CBLN20LCU/p1545279785004100

I think it's probably better to decide on these return types early on. Not sure exactly about the choices; what do you think?

@poltak poltak requested a review from ShishKabab January 22, 2019 13:53
@ShishKabab
Copy link
Member

Sorry for my late reply here. Good to decide on the return types. Everything OK for adding the separate PK field for the createObject operation. However, I'd like the count value of the update and delete operations to be an option explicitly passed in, with a BackendFeatures entry, because it could be not every back-end supports that natively, and thus may have to execute an extra query for that.

Based on what we discussed this a while back on slack:
https://worldbrain.slack.com/archives/CBLN20LCU/p1545279785004100

I think it's probably better to decide on these return types early on. Not sure exactly about the choices; what do you think?
@poltak poltak force-pushed the feature/return-types branch from 3969e77 to cf0847c Compare April 16, 2019 12:11
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

Successfully merging this pull request may close these issues.

2 participants