diff --git a/404.html b/404.html index 019ece1131..f6abebe311 100644 --- a/404.html +++ b/404.html @@ -15,8 +15,8 @@ - - + +
Skip to main content
\ No newline at end of file diff --git a/blog/tags/docusaurus/index.html b/blog/tags/docusaurus/index.html index 56668bc839..0ee19cce86 100644 --- a/blog/tags/docusaurus/index.html +++ b/blog/tags/docusaurus/index.html @@ -15,8 +15,8 @@ - - + +
Skip to main content
\ No newline at end of file diff --git a/docs/getting_started/execute/index.html b/docs/getting_started/execute/index.html index ea1d71e618..6c0ae69e3c 100644 --- a/docs/getting_started/execute/index.html +++ b/docs/getting_started/execute/index.html @@ -15,8 +15,8 @@ - - + + +

You can now add additional fields, and compose more queries together!

\ No newline at end of file diff --git a/docs/getting_started/index.html b/docs/getting_started/index.html index 626ea80f71..e99df89fee 100644 --- a/docs/getting_started/index.html +++ b/docs/getting_started/index.html @@ -15,8 +15,8 @@ - - + + + \ No newline at end of file diff --git a/docs/getting_started/launch/index.html b/docs/getting_started/launch/index.html index 4d75f68a15..948f3b9ada 100644 --- a/docs/getting_started/launch/index.html +++ b/docs/getting_started/launch/index.html @@ -15,8 +15,8 @@ - - + + +

The server starts with the schema provided and prints out a load of meta information. We will cover those in detail in a bit. For now, open the playground URL in a new tab in your browser and try it out for yourself!

\ No newline at end of file diff --git a/docs/guides/cli/index.html b/docs/guides/cli/index.html index c413e272bc..ff842a1f4d 100644 --- a/docs/guides/cli/index.html +++ b/docs/guides/cli/index.html @@ -15,8 +15,8 @@ - - + +
Skip to main content
+

This command prompts for additional file creation and configuration, creating a .tailcallrc.graphql file by default.

\ No newline at end of file diff --git a/docs/guides/client-tuning/index.html b/docs/guides/client-tuning/index.html index dcce87bf89..bffdb2fa88 100644 --- a/docs/guides/client-tuning/index.html +++ b/docs/guides/client-tuning/index.html @@ -15,8 +15,8 @@ - - + + +

In summary, the key to maximizing HTTP client performance lies in understanding the underlying protocols and thoughtful configuration of client settings through test. By doing so, developers can ensure efficient, robust, and high-performing client-server communication, essential for the smooth operation of modern web applications.

\ No newline at end of file diff --git a/docs/guides/context/index.html b/docs/guides/context/index.html index e0e4f693ea..440fabfb8f 100644 --- a/docs/guides/context/index.html +++ b/docs/guides/context/index.html @@ -15,8 +15,8 @@ - - + +
Skip to main content
+

Here, headers.userId refers to a header called userId that should be present in the context. The server can use this userId to fetch comments for the specified user.

\ No newline at end of file diff --git a/docs/guides/environment-variables/index.html b/docs/guides/environment-variables/index.html index 5fca47abda..b96a6259a6 100644 --- a/docs/guides/environment-variables/index.html +++ b/docs/guides/environment-variables/index.html @@ -15,8 +15,8 @@ - - + + +

By following these practices, you can effectively manage and secure your environment variables.

\ No newline at end of file diff --git a/docs/guides/logging/index.html b/docs/guides/logging/index.html index 2c8f351c4f..f8b5c9377a 100644 --- a/docs/guides/logging/index.html +++ b/docs/guides/logging/index.html @@ -15,8 +15,8 @@ - - + + +
info

Log levels are flexible and can be provided in either uppercase or lowercase. For instance, setting TAILCALL_LOG_LEVEL=DEBUG or TAILCALL_LOG_LEVEL=debug will yield the same result.

\ No newline at end of file diff --git a/docs/guides/n+1/index.html b/docs/guides/n+1/index.html index 6d71a2163b..b68503db31 100644 --- a/docs/guides/n+1/index.html +++ b/docs/guides/n+1/index.html @@ -15,8 +15,8 @@ - - + + +

By using this approach, you can reduce the number of requests from 101 (for 100 posts plus one initial request for the post list) to just 2. This significant optimization effectively handles the N+1 problem, thereby enhancing your application's efficiency and user experience.

\ No newline at end of file diff --git a/docs/guides/operator-composition/index.html b/docs/guides/operator-composition/index.html index 92286c26c9..c956a60eee 100644 --- a/docs/guides/operator-composition/index.html +++ b/docs/guides/operator-composition/index.html @@ -15,8 +15,8 @@ - - + + +

This is a powerful mechanism that allows you to make your GraphQL schema more precise, easier to understand, and more suitable for the specific needs of your application.

\ No newline at end of file diff --git a/docs/guides/watch-mode/index.html b/docs/guides/watch-mode/index.html index b26f9a23fa..a8bfa1b952 100644 --- a/docs/guides/watch-mode/index.html +++ b/docs/guides/watch-mode/index.html @@ -15,8 +15,8 @@ - - + + +

By following these best practices and using entr effectively, you can significantly improve your development workflow. Experiment with entr, adapt it to your project's specific requirements, and enjoy a smoother and more efficient development process. Happy coding!

\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 773cd14620..f64e04ce33 100644 --- a/docs/index.html +++ b/docs/index.html @@ -15,8 +15,8 @@ - - + +
Skip to main content
+

Further enhancing its capabilities, Tailcall's DSL supports sophisticated API Orchestration, going beyond mere request routing. It enables you to define the expected API structure and provides guidance on resolving each component within the entity type. For instance, consider a transaction API containing a userId. Traditionally, expanding this userId to retrieve the corresponding user details would require additional micro-services. However, with Tailcall, expressing this requirement through its DSL prompts the Tailcall runtime to automatically resolve and populate these details for you. This approach eliminates the need for any manual coding, streamlining the API management process significantly.

\ No newline at end of file diff --git a/docs/operators/add-field/index.html b/docs/operators/add-field/index.html index e79dfe3933..9a29bbb51f 100644 --- a/docs/operators/add-field/index.html +++ b/docs/operators/add-field/index.html @@ -15,8 +15,8 @@ - - + + +

In conclusion, the @addField operator helps tidy up your schema and streamline data fetching by reducing query depth, promoting better performance and simplicity.

\ No newline at end of file diff --git a/docs/operators/cache/index.html b/docs/operators/cache/index.html index cdc14e5815..c635a8cc1b 100644 --- a/docs/operators/cache/index.html +++ b/docs/operators/cache/index.html @@ -15,8 +15,8 @@ - - + + +

If @cache is set for a query or a field, the resolver for it will run once and the result will be stored in memory for maxAge milliseconds, and will expire after this duration. After the cache expires, the resolver will be run again to fetch the latest value and that value will then be cached.

\ No newline at end of file diff --git a/docs/operators/const/index.html b/docs/operators/const/index.html index cb1a5a586d..229e44d404 100644 --- a/docs/operators/const/index.html +++ b/docs/operators/const/index.html @@ -15,8 +15,8 @@ - - + +
Skip to main content

@const

The @const operators allows us to embed a constant response for the schema. For eg:

schema {
query: Query
}

type Query {
user: User @const(data: {name: "John", age: 12})
}

type User {
name: String
age: Int
}
-

The const operator will also validate the provided value at compile time to make sure that it matches the of the field. If the schema of the provided value doesn't match the type of the field, a descriptive error message is show on the console.

+

The const operator will also validate the provided value at compile time to make sure that it matches the of the field. If the schema of the provided value doesn't match the type of the field, a descriptive error message is show on the console.

\ No newline at end of file diff --git a/docs/operators/graphql/index.html b/docs/operators/graphql/index.html index 74c0b498af..7a4b512b0c 100644 --- a/docs/operators/graphql/index.html +++ b/docs/operators/graphql/index.html @@ -15,8 +15,8 @@ - - + +
Skip to main content
+

Make sure you have also specified batch settings to the @upstream and to the @graphQL operator.

\ No newline at end of file diff --git a/docs/operators/grpc/index.html b/docs/operators/grpc/index.html index 2e6a3a771c..0700c90629 100644 --- a/docs/operators/grpc/index.html +++ b/docs/operators/grpc/index.html @@ -15,8 +15,8 @@ - - + + +

The @grpc operator is a powerful tool for GraphQL developers, allowing for seamless integration with gRPC services. By understanding and utilizing its various fields, developers can create efficient, streamlined APIs that leverage the strengths of both GraphQL and gRPC.

\ No newline at end of file diff --git a/docs/operators/http/index.html b/docs/operators/http/index.html index d91d15be8a..9d4a9c261e 100644 --- a/docs/operators/http/index.html +++ b/docs/operators/http/index.html @@ -15,8 +15,8 @@ - - + + + \ No newline at end of file diff --git a/docs/operators/index.html b/docs/operators/index.html index b6be132012..cd10a3bf9f 100644 --- a/docs/operators/index.html +++ b/docs/operators/index.html @@ -15,8 +15,8 @@ - - + +
Skip to main content

Operators

Tailcall DSL builds on your existing GraphQL knowledge by allowing the addition of some custom operators. These operators provide powerful compile time guarantees to make sure your API composition is tight and robust. The operator information is used to automatically generate highly optimized resolver logic for your types.

Here is a list of all the custom operators supported by Tailcall:

Certainly! Here's the table with hyperlinks added back to the operator names:

-
OperatorDescription
@addFieldSimplifies data structures and queries by adding, inlining, or flattening fields or nodes within the schema.
@cacheEnables caching for the query, field or type it is applied to.
@constAllows embedding of a constant response within the schema.
@graphQLResolves a field or node by a GraphQL API.
@grpcResolves a field or node by a gRPC API.
@httpResolves a field or node by a REST API.
@modifyEnables changes to attributes of fields or nodes in the schema.
@serverProvides server configurations for behavior tuning and tailcall optimization in various use-cases.
@upstreamControls aspects of the upstream server connection, including timeouts and keep-alive settings.
+
OperatorDescription
@addFieldSimplifies data structures and queries by adding, inlining, or flattening fields or nodes within the schema.
@cacheEnables caching for the query, field or type it is applied to.
@constAllows embedding of a constant response within the schema.
@graphQLResolves a field or node by a GraphQL API.
@grpcResolves a field or node by a gRPC API.
@httpResolves a field or node by a REST API.
@modifyEnables changes to attributes of fields or nodes in the schema.
@serverProvides server configurations for behavior tuning and tailcall optimization in various use-cases.
@upstreamControls aspects of the upstream server connection, including timeouts and keep-alive settings.
\ No newline at end of file diff --git a/docs/operators/modify/index.html b/docs/operators/modify/index.html index 2615666277..68e0a37c69 100644 --- a/docs/operators/modify/index.html +++ b/docs/operators/modify/index.html @@ -15,8 +15,8 @@ - - + +
Skip to main content
+

@modify(omit: true) tells GraphQL that the id field should not be included in the schema, thus it won't be accessible to the client.

\ No newline at end of file diff --git a/docs/operators/server/index.html b/docs/operators/server/index.html index 2a511ec5ac..66d88e24c7 100644 --- a/docs/operators/server/index.html +++ b/docs/operators/server/index.html @@ -15,8 +15,8 @@ - - + + +

Batching can improve performance but may introduce latency if one request in the batch takes longer. It also makes network traffic debugging harder.

\ No newline at end of file diff --git a/docs/operators/upstream/index.html b/docs/operators/upstream/index.html index cd3b4f8b9c..d7906a78d0 100644 --- a/docs/operators/upstream/index.html +++ b/docs/operators/upstream/index.html @@ -15,8 +15,8 @@ - - + +
Skip to main content
+
schema @upstream(batch: {maxSize: 1000, delay: 10, headers: ["X-Server", "Authorization"]}) {
query: Query
mutation: Mutation
}
\ No newline at end of file diff --git a/enterprise/index.html b/enterprise/index.html index 7754011b5b..0951b00eed 100644 --- a/enterprise/index.html +++ b/enterprise/index.html @@ -15,8 +15,8 @@ - - + +
Skip to main content