放大 Graphql appsync 数据返回不逻辑的 bug
当我创建一个项目时,该项目已经创建了,我可以按ID获取项目,但是当我获得列表时,项目不包含创建的项目。
type Order @model @searchable{
id: ID! @primaryKey
ref: String!
user: User @belongsTo
}
// first query works!!
query MyQuery {
getOrder(id: "idxamplee") {
id
ref
}
}
//second query not work
query MyQuery {
listOrders() {
items {
id
ref
}
}
}
放大Appsync DynamoDB同步 schemaurl
When I create an item, the item has created and I can get the item by id but when i get the list items doesn't contain the item created.
type Order @model @searchable{
id: ID! @primaryKey
ref: String!
user: User @belongsTo
}
// first query works!!
query MyQuery {
getOrder(id: "idxamplee") {
id
ref
}
}
//second query not work
query MyQuery {
listOrders() {
items {
id
ref
}
}
}
amplify appsync dynamodb synchronization
schemaUrl
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论