rooneyK
02/24/2019, 9:09 AMfirst
value to 100 for all array-type queries. I've successfully added this to the schema, and I can see that first
is defaulted to 100 in all queries. However, it doesn't apply correctly to nested queries. Is this a bug, or am I doing something wrong here?
type Query {
cats(first: Int = 2, last: Int): [Cat]!
}
type Cat implements,Node {
name: String!
slaves(first: Int = 2, last: Int): [Person!]
}
query {
cats{name slaves{name}}
}
# results has the first 2 cats and all their slaves, while they should only have the first 2 slaves, a total of 4 here.
Harshit
02/24/2019, 9:22 AMHarshit
02/24/2019, 9:22 AMrooneyK
02/24/2019, 12:02 PMrooneyK
02/24/2019, 12:04 PMcats
, but not for slaves
rooneyK
02/24/2019, 1:44 PMgraphql-yoga
?rooneyK
02/24/2019, 6:24 PM