Skip to content

Commit

Permalink
Merge branch 'main' into chore/update-mustache-syntex
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddOnTop committed Apr 22, 2024
2 parents 9086adb + 13f6172 commit 41cd951
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 14 deletions.
Binary file removed assets/Tailcall Timeline 2023.png
Binary file not shown.
1 change: 0 additions & 1 deletion assets/Tailcall Timeline 2023.svg

This file was deleted.

Binary file removed assets/logging.png
Binary file not shown.
Binary file removed assets/logo_main.png
Binary file not shown.
Binary file removed assets/startup_command.png
Binary file not shown.
14 changes: 2 additions & 12 deletions examples/cors.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,19 @@ schema
port: 8000
graphiql: true
hostname: "0.0.0.0"
headers: {cors: {allowOrigins: ["abc.xyz"], allowHeaders: ["Authorization"], allowMethods: [POST, GET, OPTIONS]}}
headers: {cors: {allowOrigins: ["*"], allowHeaders: ["*"], allowMethods: [POST, GET, OPTIONS]}}
)
@upstream(baseURL: "http://jsonplaceholder.typicode.com") {
query: Query
}

type Query @cache(maxAge: 30000) {
type Query {
posts: [Post] @http(path: "/posts")
}

type User {
id: Int!
name: String!
username: String!
email: String!
phone: String
website: String
}

type Post {
id: Int!
userId: Int!
title: String!
body: String!
user: User @http(path: "/users/{{.value.userId}}")
}
2 changes: 1 addition & 1 deletion examples/jsonplaceholder.graphql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
schema
@server(port: 8000, graphiql: true, hostname: "0.0.0.0")
@server(port: 8000, headers: {cors: {allowOrigins: ["*"], allowHeaders: ["*"], allowMethods: [POST, GET, OPTIONS]}})
@upstream(baseURL: "http://jsonplaceholder.typicode.com", httpCache: true, batch: {delay: 100}) {
query: Query
}
Expand Down

0 comments on commit 41cd951

Please sign in to comment.