projectionDepthOnFields
protected final java.util.Map<java.lang.String,java.lang.Integer> projectionDepthOnFields
save current depth for self recursive type.(it's actually a marker)
such as
{type Human implements Character {
id: ID!
friends: [Character] # if you response this field on Human projection , Character has itself,
# so, we need know depth of subquery.
}
interface Character {
id: ID!
friends: [Character]
}
}
Map Notes:
`key` is parentProjection.childProjection.currentMethod. e.g. `CharacterResponseProjection.CharacterResponseProjection.friends` (excluding the first layer, so if only want the first child layer, use `all$(1)`)
`value` is current depth for Character type. Each projection has a new instance of `projectionDepthOnFields`, so it always be `1` or `0`.
and `responseProjectionMaxDepth` will reduce by recursive.