在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):howtographql/graphql-ruby开源软件地址(OpenSource Url):https://github.com/howtographql/graphql-ruby开源编程语言(OpenSource Language):Ruby 87.3%开源软件介绍(OpenSource Introduction):graphql-rubyInstallationInstall dependencies:
Starting the server:
Opening the application:
Interesting Files:
Sample GraphQL QueriesList first 10 links, containing "example": {
allLinks(first: 10, filter: {descriptionContains: "example"}) {
id
url
description
createdAt
postedBy {
id
name
}
}
}
Creates new user: mutation {
createUser(
name: "Radoslav Stankov",
authProvider: {
credentials: { email: "[email protected]", password: "123456" }
}
) {
id
email
name
}
} Creates new user token: mutation {
signinUser(credentials: {email: "[email protected]", password: "123456"}) {
token
user {
id
email
name
}
}
} Creates new link: mutation {
createLink(url:"http://example.com", description:"Example") {
id
url
description
postedBy {
id
name
}
}
} Creates new vote: mutation {
createVote(linkId:"TGluay0yMQ==") {
user {
id
name
}
link {
id
url
description
}
}
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论