GraphQL - Schema Definition Language (SDL)
Identify the error in this GraphQL object type definition:
type Product {
id: ID!
name: String
price: Float
price: Int
}type Product {
id: ID!
name: String
price: Float
price: Int
}price is declared twice with different types (Float and Int), which is invalid.ID! is valid for non-null. Fields can be optional. Object type can have multiple fields.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions