Ai
0 Star 0 Fork 0

custer/hackernews-react-apollo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
project.graphcool 922 Bytes
一键复制 编辑 原始数据 按行查看 历史
custertian 提交于 2017-08-22 20:58 +08:00 . 6.More Mutations and Updating the Store
# project: cj6ks1dgw17pl0165izaj3fyr
# version: 5
type Link implements Node {
url: String!
description: String!
createdAt: DateTime!
id: ID! @isUnique
updatedAt: DateTime!
postedBy: User @relation(name: "UsersLinks")
votes: [Vote!]! @relation(name: "VotesOnLink")
}
type File implements Node {
contentType: String!
createdAt: DateTime!
id: ID! @isUnique
name: String!
secret: String! @isUnique
size: Int!
updatedAt: DateTime!
url: String! @isUnique
}
type User implements Node {
createdAt: DateTime!
email: String @isUnique
id: ID! @isUnique
password: String
updatedAt: DateTime!
name: String!
links: [Link!]! @relation(name: "UsersLinks")
votes: [Vote!]! @relation(name: "UsersVotes")
}
type Vote implements Node {
user: User! @relation(name: "UsersVotes")
link: Link! @relation(name: "VotesOnLink")
createdAt: DateTime!
id: ID! @isUnique
updatedAt: DateTime!
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/custer_git/hackernews-react-apollo.git
git@gitee.com:custer_git/hackernews-react-apollo.git
custer_git
hackernews-react-apollo
hackernews-react-apollo
master

搜索帮助