|
|
|
|
|
by scottmf
3234 days ago
|
|
Hmm, you're not quite thinking in GraphQL properly. That isn't how your schema should be designed. Your mother field should resolve to a Person type, with a mother and/or ancestors field, which would be a graphql list type of the Person type. Something like this: Person {
mother: Person
femaleAncestors: [Person]
}
|
|
``` Person { ancestors(gender: Female, orderby: [AGE], first: 10) { node { name } } } ```