DynamoDB AppSync field resolvers timing out

自闭症网瘾萝莉.ら 提交于 2019-12-31 04:58:06

问题


So I have the schema below. If I try to query data off this schema AppSync will time out saying 'NetworkError when attempting to fetch resource.'

type Model {
    PartitionKey: ID!
    SortKey: ID!
    Name: String
    Version: Int
    FBX: String
    # ms since epoch
    CreatedAt: AWSTimestamp
    Description: String
    Tags: [Tag]
}

type ImageSet {
    PartitionKey: ID!
    SortKey: ID!
    Name: String
    CreatedAt: AWSTimestamp
    Description: String
    Tags: [String]
}

Now, if I change 'Name' in the model to 'ModelName' then queries on that will work. If I change 'Name' in ImageSet to 'SetName' then queries on that will work.

What is going on with this? What is wrong with the 'Name' field name? 'Description' and 'CreatedAt' do not have this issue.

Edit

Actually I am encountering this happening with other fields in the schema as well. Please help.

I do have resolvers attached to specific fields. Removing them does solve the problem. Am I not supposed to attach revolvers to specific fields or is something else wrong?

-

Edit 2

This really does seem to only occur if the name of a field is shared between different schema objects, is that not allowed!?

来源:https://stackoverflow.com/questions/52065749/dynamodb-appsync-field-resolvers-timing-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!