-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Description
Hi!
I've got a connection field Network.channels
type Network {
channels(
after: String
before: String
first: Int
last: Int
): ChannelConnection!
}
type ChannelConnection {
edges: [ChannelEdge!]!
nodes: [Channel!]!
pageInfo: PageInfo!
}
type ChannelEdge {
cursor: String!
node: Channel!
}
type Channel {
id: String!
}
So Network.channels
takes an argument first
or last
which tells us how many nodes or edges the ChannelConnection
is going to have. I can't use the field based custom estimator because the args are on the parent field and I don't access to the args when I'm calculating in the ChannelConnection.nodes
or ChannelConnection.edges
.
Is there a way to work around this?
Metadata
Metadata
Assignees
Labels
No labels