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

Query examples #3

Open
mauphung opened this issue Feb 12, 2021 · 0 comments
Open

Query examples #3

mauphung opened this issue Feb 12, 2021 · 0 comments

Comments

@mauphung
Copy link

I can get a category with its products and parents like this:
$query = '
{ category (id:'.$id.') {
category_id , name , products_count ,
categories { category_id , name } ,
products { product_id name, description, image, price, special }
} }';
But I cannot get a category with a filter as defined in schema.qgl
type CategoryType {
category_id:ID
name:String
...
filters:[CategoryFilterGroupType]
}

type CategoryFilterGroupType {
filter_group_id:ID
name:String
filter:[CategoryFilterDataType]
}

type CategoryFilterDataType {
filter_id:ID
name:String
}
Please help me with some examples on query with filters. For example query to get category filter by name and/or others.
Thank you very much.

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