Dataset Viewer
text
stringlengths 50
4.63M
| max_stars_count
float64 1
57.6k
⌀ | max_stars_repo_name
stringlengths 5
85
|
|---|---|---|
`file_name: api/src/schema.graphql`
####
type Venue {
name: String!
sessions: [Session] @relation(name: "IN", direction: "IN")
}
type Speaker {
name: String!
works_for: [Company] @relation(name: "WORKS_FOR", direction: "OUT")
presents: [Session] @relation(name: "PRESENTS", direction: "OUT")
}
type Company {
name: String!
speakers: [Speaker] @relation(name: "WORKS_FOR", direction: "IN")
}
type Subject {
name: String!
sessions: [Session] @relation(name: "HAS_SUBJECT", direction: "IN")
}
type Tag {
name: String!
sessions: [Session] @relation(name: "HAS_TAG", direction: "IN")
}
type Session {
audience: String!
description: String
event_end: DateTime!
event_start: DateTime!
id: String!
name: String!
photo: String
in: [Venue] @relation(name: "IN", direction: "OUT")
has_subject: [Subject] @relation(name: "HAS_SUBJECT", direction: "OUT")
has_tag: [Tag] @relation(name: "HAS_TAG", direction: "OUT")
speakers: [Speaker] @relation(name: "PRESENTS", direction: "IN")
recommended(first: Int = 3): [Session] @cypher(statement: """
MATCH (this)-[:HAS_TAG|HAS_SUBJECT]->()<-[:HAS_TAG|HAS_SUBJECT]-(rec:Session)
WITH rec, COUNT(*) AS score
RETURN rec ORDER BY score DESC LIMIT $first
""")
}
| 3 |
007vasy/NODES2019-GRANDstack
|
`file_name: codegen/testserver/issue896.graphql`
####
# This example should build stable output. If the file content starts
# alternating nondeterministically between two outputs, then see
# https://github.com/00security/gqlgen/issues/896.
extend schema {
query: Query
subscription: Subscription
}
type CheckIssue896 {id: Int}
extend type Query {
issue896a: [CheckIssue896!] # Note the "!" or lack thereof.
}
extend type Subscription {
issue896b: [CheckIssue896] # Note the "!" or lack thereof.
}
####`file_name: codegen/testserver/validtypes.graphql`
####
extend type Query {
validType: ValidType
}
""" These things are all valid, but without care generate invalid go code """
type ValidType {
differentCase: String!
different_case: String! @goField(name:"DifferentCaseOld")
validInputKeywords(input: ValidInput): Boolean!
validArgs(
break: String!,
default: String!,
func: String!,
interface: String!,
select: String!,
case: String!,
defer: String!,
go: String!,
map: String!,
struct: String!,
chan: String!,
else: String!,
goto: String!,
package: String!,
switch: String!,
const: String!,
fallthrough: String!,
if: String!,
range: String!,
type: String!,
continue: String!,
for: String!,
import: String!,
return: String!,
var: String!,
_: String!,
): Boolean!
}
input ValidInput {
break: String!
default: String!
func: String!
interface: String!
select: String!
case: String!
defer: String!
go: String!
map: String!
struct: String!
chan: String!
else: String!
goto: String!
package: String!
switch: String!
const: String!
fallthrough: String!
if: String!
range: String!
type: String!
continue: String!
for: String!
import: String!
return: String!
var: String!
_: String! @goField(name: "Underscore")
}
# see https://github.com/00security/gqlgen/issues/694
type Content_User {
foo: String
}
type Content_Post {
foo: String
}
union Content_Child = Content_User | Content_Post
####`file_name: codegen/testserver/weird_type_cases.graphql`
####
# regression test for https://github.com/00security/gqlgen/issues/583
type asdfIt { id: ID! }
type iIt { id: ID! }
type AIt { id: ID! }
type XXIt { id: ID! }
type AbIt { id: ID! }
type XxIt { id: ID! }
####`file_name: codegen/testserver/wrapped_type.graphql`
####
# regression test for https://github.com/00security/gqlgen/issues/721
extend type Query {
wrappedStruct: WrappedStruct!
wrappedScalar: WrappedScalar!
wrappedMap: WrappedMap!
wrappedSlice: WrappedSlice!
}
type WrappedStruct { name: WrappedScalar!, desc: WrappedScalar }
scalar WrappedScalar
type WrappedMap { get(key: String!): String! }
type WrappedSlice { get(idx: Int!): String! }
####`file_name: example/config/user.graphql`
####
type User
@goModel(model:"github.com/00security/gqlgen/example/config.User") {
id: ID!
name: String! @goField(name:"FullName")
}
| null |
00security/gqlgen
|
`file_name: src/domain/article/article.graphql`
####
type ArticleConnection {
"""
edges
"""
edges: [ArticleEdge!]!
"""
pageInfo
"""
pageInfo: PageInfo!
}
type ArticleEdge {
"""
cursor
"""
cursor: String
"""
article node
"""
node: Article!
}
type Article {
"""
ID
"""
id: ID!
"""
article title
"""
title: String!
}
input GetArticlesInput {
first: Int
after: String
before: String
}
####`file_name: src/domain/user/user.graphql`
####
type User {
"""
ID
"""
id: ID!
"""
user name
"""
name: String!
}
####`file_name: src/schema.graphql`
####
schema {
query: Query
}
type Query {
"""
get user by id
"""
getUser(id: Int!): User!
"""
get article by id
"""
getArticle(id: Int!): Article!
"""
get articles
"""
getArticles(input: GetArticlesInput!): ArticleConnection!
}
type PageInfo {
"""
"""
startCursor: String
"""
"""
endCursor: String
"""
"""
hasNextPage: Boolean!
"""
"""
hasPreviousPage: Boolean!
}
| 2 |
0261/nest-graphql-boiler
|
"`file_name: plugins/github/resources/graphql/fragment/gitRefName.graphql`\n####\nfragment gitRefNam(...TRUNCATED) | null |
06needhamt/intellij-community
|
"`file_name: schema.graphql`\n####\n\"\"\"Exposes a URL that specifies the behaviour of this scalar.(...TRUNCATED) | 6 |
0916dhkim/relay-expo-workshop
|
"`file_name: src/graphql/schema.graphql`\n####\n# source: https://fakeql.com/graphql/cd6f412dedaffc7(...TRUNCATED) | null |
0b10/my-blog-react
|
"`file_name: k8s/router/dev/supergraph.graphql`\n####\nschema\n @core(feature: \"https://specs.apol(...TRUNCATED) | 82 |
0ctanium/supergraph-demo
|
"`file_name: schema.graphql`\n####\ntype Bet @entity {\n id: ID!\n player: Player!\n playerHasWon(...TRUNCATED) | null |
0cv/thegraphdemo
|
"`file_name: schema.graphql`\n####\ntype Vault @entity {\n id: ID!\n xTokenAddress: Bytes\n asset(...TRUNCATED) | null |
0knxwledge/nftx-subgraph
|
"`file_name: res/schema.graphql`\n####\nschema {\n query: Query\n mutation: Mutation\n}\ntype (...TRUNCATED) | null |
0m3gaC0d3/headless-blog
|
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 7