forked from tailcallhq/tailcall
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/llm-config
- Loading branch information
Showing
111 changed files
with
2,434 additions
and
1,056 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,5 @@ input NewsInput { | |
} | ||
|
||
type NewsData { | ||
news: [News]! | ||
news: [News] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,5 @@ input NewsInput { | |
} | ||
|
||
type NewsData { | ||
news: [News]! | ||
news: [News] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,5 +58,5 @@ enum Status { | |
} | ||
|
||
type NewsData { | ||
news: [News]! | ||
news: [News] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Given the sample schema of a GraphQL type, suggest 5 meaningful names for it. | ||
The name should be concise and preferably a single word. | ||
|
||
Example Input: | ||
{{input}} | ||
|
||
Example Output: | ||
{{output}} | ||
|
||
Ensure the output is in valid JSON format. | ||
|
||
Do not add any additional text before or after the JSON. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
schema | ||
@server(port: 8000) | ||
@upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: 42, batch: {delay: 100}) { | ||
query: Query | ||
mutation: Mutation | ||
} | ||
|
||
enum Status { | ||
ACTIVE | ||
INACTIVE | ||
PENDING | ||
} | ||
|
||
input UserInput { | ||
name: String! | ||
email: String! | ||
status: Status | ||
} | ||
|
||
interface Node { | ||
id: ID! | ||
createdAt: DateTime! | ||
updatedAt: DateTime! | ||
} | ||
|
||
type User implements Node { | ||
id: ID! | ||
name: String! | ||
email: String! | ||
status: Status | ||
createdAt: DateTime! | ||
updatedAt: DateTime! | ||
} | ||
|
||
union SearchResult = User | Post | ||
|
||
type Post implements Node { | ||
id: ID! | ||
title: String! | ||
content: String! | ||
author: User! | ||
createdAt: DateTime! | ||
updatedAt: DateTime! | ||
} | ||
|
||
type Query { | ||
user(id: ID!): User @http(path: "/users/{{.args.id}}") | ||
search(term: String!): [SearchResult!] @http(path: "/search", query: [{key: "q", value: "{{.args.term}}"}]) | ||
} | ||
|
||
input PostInput { | ||
title: String! | ||
content: String! | ||
authorId: ID! | ||
} | ||
|
||
type Mutation { | ||
createUser(input: UserInput!): User! @http(path: "/users", body: "{{.args.input}}", method: "POST") | ||
createPost(input: PostInput): Post! @http(path: "/posts", body: "{{.args.input}}", method: "POST") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.