Skip to content

issue filtering on nested #7

@gmjordan

Description

@gmjordan

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions