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

prest/adapter: FindOne, return object not list #334

Open
avelino opened this Issue Sep 16, 2018 · 4 comments

Comments

3 participants
@avelino
Member

avelino commented Sep 16, 2018

Returns one result that satisfies the specified query criteria on the table or view.

case

When I use to auth (login) in I have to put limit 1 in the query. Even then a list is returned with only one result (in case satisfying).

To treat the return I need to look at the first element of the list, example:
https://github.com/mining/mds/blob/ccd0142f79785771216a12bf1324831f99f078cd/auth/auth.go#L30:L47

multiple returns

should return error

@avelino avelino added the feature label Sep 16, 2018

@avelino avelino changed the title from adapter: FindOne, return object not list to prest/adapter: FindOne, return object not list Sep 17, 2018

@DanielDanteDosSantosViana

This comment has been minimized.

DanielDanteDosSantosViana commented Oct 15, 2018

@avelino I'm taking this one if you don't mind

@felipeweb

This comment has been minimized.

Member

felipeweb commented Oct 15, 2018

@DanielDanteDosSantosViana

This comment has been minimized.

DanielDanteDosSantosViana commented Oct 15, 2018

Thank @felipeweb!! There are many branches in this project, what branch is correct to work?

@felipeweb

This comment has been minimized.

Member

felipeweb commented Oct 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment