You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`--redocly` - use the default Redocly configuration file
101
101
-`--redocly ./my-redocly-config.yaml` - use a custom Redocly configuration file
102
102
-`qraft openapi my-api@v1 external-api --redocly` - generate clients for multiple APIs defined in the Redocly configuration
103
-
- For more information about this option, use the command: `--redocly-help` or [read the docs](/codegen/cli/redocly-config.mdx).
103
+
- For more information about this option, use the command: `--redocly-help` or [read the docs](../cli/redocly-config.mdx).
104
104
105
105
-**`--service-name-base <endpoint[<index>] | tags>`:** Use OpenAPI Operation `endpoint[<index>]` path part (e.g.: `/0/1/2`) or `tags` as the base name of the service. _(optional, default: `endpoint[0]`)_.
106
106
-**`endpoint[<index>]`** - Use the path segment (e.g., `/0/1/2`) as the base name for the service.
@@ -195,7 +195,7 @@ It is possible to use multiple plugins at the same time. For example, `--plugin
195
195
-**`--create-api-client-fn <functionName> [options...]`:** Configure API client creation function. Allows specifying the function name used to create the API client, as well as fine-tuning included services and callbacks.
196
196
You can specify this option **multiple times** to generate **several different API client** creation functions from a single OpenAPI document - for example,
197
197
a fully-featured client for Node.js and a lightweight client for React or service workers. _(optional)_
198
-
See examples on the [`useQuery()`](/hooks/useQuery.mdx#example) documentation page.
198
+
See examples on the [`useQuery()`](../../hooks/useQuery.mdx#example) documentation page.
199
199
-**Options:**
200
200
-`filename:<name>` - filename where the function will be generated (defaults to function name)
201
201
-`services:[all|none]` - Specify whether the generated API client should include services: either all available services, or no services by default.
@@ -216,7 +216,7 @@ It is possible to use multiple plugins at the same time. For example, `--plugin
216
216
217
217
::::tip
218
218
When generating multiple API client functions with different parameters, it might be more convenient to use a configuration file
219
-
instead of command-line parameters. See the [Redocly configuration documentation](/codegen/cli/redocly-config.mdx#generating-multiple-api-client-functions)
219
+
instead of command-line parameters. See the [Redocly configuration documentation](../cli/redocly-config.mdx#generating-multiple-api-client-functions)
220
220
for more details on how to configure multiple _create API client functions_ in a YAML file.
Using the Query Key (array) as an arguments for the `useQuery` is useful
110
-
with combination of [`api.<service>.<operation>.getQueryKey(...)`](/query-client/getQueryKey.mdx) method
110
+
with combination of [`api.<service>.<operation>.getQueryKey(...)`](../query-client/getQueryKey.mdx) method
111
111
when shared Query Key is needed.
112
112
113
113
```tsx title="src/ApprovalPolicyName.tsx"
@@ -272,7 +272,7 @@ during code generation.
272
272
You can specify which services and callback functions should be included in the client by default.
273
273
274
274
> 💡 When generating multiple API client functions with different parameters, it might be more convenient to use a configuration file
275
-
> instead of command-line parameters. See the [Redocly configuration documentation](/codegen/cli/redocly-config.mdx#generating-multiple-api-client-functions)
275
+
> instead of command-line parameters. See the [Redocly configuration documentation](../codegen/cli/redocly-config.mdx#generating-multiple-api-client-functions)
276
276
> for more details on how to configure multiple _create API client functions_ in a YAML file.
277
277
278
278
#### Example 1: All services but no callbacks by default
The Hook enables you to perform asynchronous data fetching operations with support for infinite scrolling scenarios.
8
-
The functionality is similar to the [_useInfiniteQuery_](/hooks/useInfiniteQuery.mdx) hook, but with the added benefit
8
+
The functionality is similar to the [_useInfiniteQuery_](./useInfiniteQuery.mdx) hook, but with the added benefit
9
9
of Suspense support.
10
10
For more detailed information, explore [_useSuspenseInfiniteQuery(...) 🌴_](https://tanstack.com/query/latest/docs/framework/react/reference/useSuspenseInfiniteQuery) documentation for more details.
0 commit comments