Hello, I’ve run into the issue, when importing following schema, Fauna throws the error:
Can not identity the relationship between ‘Dog’ and ‘Dog’. Missing or ambiguous relational fields were detected. Please make relationships explicit by adding the @relation(name: …) directive on the relational fields for both the ‘Dog’ and ‘Dog’ types
Schema:
type Dog @collection(name: "Dogs") {
siblings: [Dog]
sire: Dog
dam: Dog
offspring: [Dog] }
Basically trying to reference to the same type more than once results in such error. Adding @relation doesn’t help.
I believe the issue arising when Fauna trying to translate graph schema to internal object relational data model.