Can you make a GraphQL type both an input and output type?
Can you make a GraphQL type both an input and output type?
In GraphQL, input and output types serve distinct purposes and are defined separately to ensure clarity and proper functionality within the schema. Here’s a detailed explanation:
Input Types:
input keyword.input UserInput {
username: String!
email: String!
password: String!
}
Output Types:
type keyword.type User {
id: ID!
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.