Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faulty cross reference detection #69

Open
westito opened this issue Nov 23, 2022 · 0 comments
Open

Faulty cross reference detection #69

westito opened this issue Nov 23, 2022 · 0 comments

Comments

@westito
Copy link

westito commented Nov 23, 2022

Generator skips repeating models however those aren't cross references. With "--includeCrossReferences" parameter there is no issue.

Schema:

type OrderDTO {
  payment: PaymentDTO!
  tipPayment: PaymentDTO!
}

type PaymentDTO {
  id: Float!
  user: User!
}

type User {
  id: Int!
  fcmTokens: [FCMToken!]
  invoiceAddress: UserInvoiceAddressInput
}

type FCMToken {
  token: String!
  lastSeen: String!
}

type UserInvoiceAddressInput {
  customerName: String!
  country: String!
  city: String!
  streetAddress: String!
  postalCode: String!
  taxNumber: String
  email: String
}

type Query {
  getOrder(orderId: Int!): OrderDTO!
}

Generation result:

query getOrder($orderId: Int!){
    getOrder(orderId: $orderId){
        payment{
            id
            user{
                id
                fcmTokens{
                    token
                    lastSeen
                }
                invoiceAddress{
                    customerName
                    country
                    city
                    streetAddress
                    postalCode
                    taxNumber
                    email
                }
            }
        }
        tipPayment{
            id
            user{
                id
            }
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant