AshTypescript.Rpc
View Sourcetypescript_rpc
Define available RPC-actions for resources in this domain.
Nested DSLs
- resource
- rpc_action
- typed_query
typescript_rpc.resource
resource resource
Define available RPC-actions for a resource
Nested DSLs
Arguments
Name | Type | Default | Docs |
---|---|---|---|
resource | module | The resource being configured |
typescript_rpc.resource.rpc_action
rpc_action name, action
Arguments
Name | Type | Default | Docs |
---|---|---|---|
name | atom | The name of the RPC-action | |
action | atom | The resource action to expose |
Introspection
Target: AshTypescript.Rpc.RpcAction
typescript_rpc.resource.typed_query
typed_query name, action
Arguments
Name | Type | Default | Docs |
---|---|---|---|
name | atom | The name of the RPC-action | |
action | atom | The read action on the resource to query |
Options
Name | Type | Default | Docs |
---|---|---|---|
ts_result_type_name | String.t | The name of the TypeScript type for the query result | |
ts_fields_const_name | String.t | The name of the constant for the fields, that can be reused by the client to re-run the query | |
fields | list(any) | The fields to query |
Introspection
Target: AshTypescript.Rpc.TypedQuery
Introspection
Target: AshTypescript.Rpc.Resource