Closed2
Schema Creation Status is FAILED with details: Internal Failure while saving the schema.
Resource is not in the state stackUpdateComplete
Name: GraphQLAPITransformerSchema3CB2AE18 (AWS::AppSync::GraphQLSchema), Event Type: update, Reason: Schema Creation Status is FAILED with details: Internal Failure while saving the schema.
以下のようMutationの入力をTypeで定義していたのが原因。Inputで定義しなおすことで解決した。
type Mutation {
updateUserData(
userName: String!
triggerSource: String!
request: Request
): Request
@function(name: "lambda-${env}")
@auth(rules: [{ allow: private, provider: userPools }])
}
type Request {
id: String!
message: String
}
修正 ↓
type Mutation {
updateUserData(
userName: String!
triggerSource: String!
request: RequestInput
): Request
@function(name: "lambda-${env}")
@auth(rules: [{ allow: private, provider: userPools }])
}
input RequestInput {
id: String!
message: String
}
type Request {
id: String!
message: String
}
このスクラップは2023/05/08にクローズされました