Recommand · January 13, 2022 0

Define more than one type of query GraphQL Schema – Best approach to define different types on query one one object

Is this possible to specify more than one type of query in one schema?

type Query {
    productsByRegion(match : String) : [Product]
    productsByType(match : String) : [Product]
}

type Product {
    id: ID
    name: String
}