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
I using grahpQL Modules and all my schema.graphql are separeted in modules.
My problem is:
I have one type in one module, after this, i declare this type again injecting other property.
But when i generat the interfase only the last type is considered.
Example
In Doctor Module:
type Doctor {
id: ID!
name: String!
birth: String
}
In Specialty Module:
type Doctor {
specialties: [Specialty]
}
Bu when i generate interfaces:
export interface GQLDoctor {
specialties?: Array<GQLSpecialty | null>;
}
Hi,
I using grahpQL Modules and all my schema.graphql are separeted in modules.
My problem is:
I have one type in one module, after this, i declare this type again injecting other property.
But when i generat the interfase only the last type is considered.
Example
In Doctor Module:
type Doctor {
id: ID!
name: String!
birth: String
}
In Specialty Module:
type Doctor {
specialties: [Specialty]
}
Bu when i generate interfaces:
export interface GQLDoctor {
specialties?: Array<GQLSpecialty | null>;
}
I use this function to merge schemas:
The text was updated successfully, but these errors were encountered: