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

write documentation ?_returning filter parameter (query string) #591

Open
avelino opened this issue Aug 29, 2021 · 0 comments
Open

write documentation ?_returning filter parameter (query string) #591

avelino opened this issue Aug 29, 2021 · 0 comments
Labels

Comments

@avelino
Copy link
Member

avelino commented Aug 29, 2021

we have the _returning filter (parameter) implemented, but it is not documented

implementation code:

// ReturningByRequest create interface for queries + returning
func (adapter *Postgres) ReturningByRequest(r *http.Request) (returningSyntax string, err error) {
// TODO: write documentation:
// https://docs.prestd.com/query-statements/#filters-parameters-query-string---get
queries := r.URL.Query()["_returning"]
if len(queries) > 0 {
for i, q := range queries {
if i > 0 && i < len(queries) {
returningSyntax += ", "
}
returningSyntax += q
}
}
return
}

@avelino avelino added docs product/api-server REST API Server labels Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant