タイトルが全てです。
GraphQL Cursor Connectionの仕様の3.1.1節には以下のような注意書きがあります。
The naming echoes that of the “Node” interface and “node” root field as described in a later section of this spec. Spec-compliant clients can perform certain optimizations if this field returns an object that implements Node, however, this is not a strict requirement for conforming.
注意書きをざっくり訳すと以下のようになります。
- この
nodeという名前は、GraphQL Object IdenrificationにおけるNodeinterfaceやnodeクエリを想起させる - が、connectionのEdgeの
nodeフィールドの型は、必ずしもNodeinterfaceを実装していなくてもよい- もちろん、
Nodeinterfaceになっているほうが最適化が効きやすいだろう
- もちろん、
多くの場合はEdgeのnodeがそのまま Node interfaceを実装するようになっていても支障はないだろうけど、必ずしも Node interfaceである必要はないよ、というのが伝えたいことでした。