如何验证GraphQL查询参数。我希望预订查询不接收页面参数上的负值。
我正在使用这些模块生成typescript类型,可以生成约束吗?(页> 0)
{
"@graphql-codegen/cli": "2.6.2",
"graphql-codegen/typescript": "2.4.5"
{type Booking {
id: ID!
totalPrice: Float!
user: User!
event: Event!
address: Address!
createdAt: String!
}
type Query {
bookings(page: Int!): [Booking!]!
}发布于 2022-02-20 18:41:27
https://stackoverflow.com/questions/71197536
复制相似问题