-
Couldn't load subscription status.
- Fork 2
Open
Description
I followed the filtering example and I am not sure if the results are what is to be expected.
I have two types
type country @vertex(collection: "countries"){
_key: String!
name: String!
states(region:String): [state] @edge (collection: "stateToCountry", direction: "inbound")
}
type state @vertex(collection: "states"){
_key: String!
name: String!
region: String!
countries: [country] @edge (collection: "stateToCountry", direction: "outbound")
}
the queries are
findState(name: String): [state]
findCountry(name: String): [country]
when I run the following:
query{
findCountry{
name
states(region:"South"){
name
region
}
}
}
it returns all the countries.
based on the docs, it seemed that it would only return countries where the state had a region of "South"
am I reading the docs wrong or applying the filter incorrectly?
Metadata
Metadata
Assignees
Labels
No labels