the answer is 1 level (A)
5 Level of Parent (meaning ObjectA.Parent1.Grandparent2...5 - with dot)
1 Level of Parent to Child (select id, (select id from contacts) from Account)
"In API version 58.0 and later, SOQL queries can contain up to five levels of parent-to-child relationships."
Source: https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_relationships_query_using.htm
Yes but it states "The ability to query five levels of parent-child relationships is limited to SOQL queries via the REST and SOAP query calls for standards and custom objects".
In general though, according to this link, https://developer.salesforce.com/docs/atlas.en-us.242.0.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_relationships_query_limits.htm, there can be only one level of parent-to-child relationship.
So I'd say A.
If before it was 1 child level, starting from API v58 it would be 4 child levels, not 5; the 5th level is the parent/root level (which should not be counted)
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
khoce
Highly Voted 2 years, 6 months agoliadc
Highly Voted 2 years, 6 months agoABHI0O07
Most Recent 8 months agohelper_raw
11 months, 4 weeks agohuwamaru
1 year agolnnr
1 year, 4 months agoNand072
1 year, 3 months agobriccoli11
1 year, 4 months agogsori
1 year, 4 months agoBaptisteBerard
1 year, 5 months agoedogaldo
1 year, 2 months agoRSD999
2 years, 7 months agoChera
2 years, 7 months ago