-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
fields didn't work well with filter #8649
Comments
@markstock7 could you provide list of steps on how to reproduce the error as I would like to test it myself. Also please describe your stack and ghost version. |
I am using ghost cli to create a ghost server. Request Url like this: ghost/api/v0.1/posts/?fields=title%2C%20slug&filter=tags%3Afoo and error like this : so i think, because the slug is both exist in posts table and tags table, so it is ambiguous. it change the sql like this, then i will work. select |
This is a known issue, for now the workaround is to avoid using There are a number of issues referencing the problem, notably #5604 and #5615 but they are currently marked Closing for now as this issue is duplicated in a number of places. |
window.ghost.url.api('posts', { fields: 'title, slug', filter:
tags:foo
})I try to find all the posts which tags = foo, But I don't need server to return all the fields, So i points it out all the fields i need.
but I get error like this : Column 'slug' in field list is ambiguous
is there a way to point out which table's column i need?
The text was updated successfully, but these errors were encountered: