You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(3) I can't get the 3rd counter-example test case to pass with the current algorithm, unless I move the "from must not be in visited" and "Add from to visited" below "If sourceField is not annotated with @override". If C is added to visited (along with A), then "The size of visited must be equal to the size of overrides" will be true, when false is expected.
I can share code if it helps.
(4) We may also want to consider splitting this rule for improved error codes and messages, for example:
The @override directive on field 'Bill.amount' in schema 'A' contains a circular reference ('A' -> 'B' -> 'A').
The field 'Bill.amount' in schema 'C' is overridden in multiple schemas ('A', 'B').
The text was updated successfully, but these errors were encountered:
Per @override definition (Apollo and this spec) from is non-nullable. Guessing validation should ensure that it is non-empty value and points to a known subgraph name.
directive @override(from: String!) on FIELD_DEFINITION
(1) When would
from
benull
?(2) If it is, should you log the error and break?
(3) I can't get the 3rd counter-example test case to pass with the current algorithm, unless I move the "from must not be in visited" and "Add from to visited" below "If sourceField is not annotated with
@override
". IfC
is added tovisited
(along withA
), then "The size of visited must be equal to the size of overrides" will betrue
, whenfalse
is expected.I can share code if it helps.
(4) We may also want to consider splitting this rule for improved error codes and messages, for example:
The @override directive on field 'Bill.amount' in schema 'A' contains a circular reference ('A' -> 'B' -> 'A').
The field 'Bill.amount' in schema 'C' is overridden in multiple schemas ('A', 'B').
The text was updated successfully, but these errors were encountered: