specs / thrift / v0.1
thrift v0.1
Thrift binary RPC field mapping directive.
1Overview
Thrift binary RPC field mapping directive.
https://specs.graphql-mesh.dev/thrift/v0.1
ยท raw GraphQL
Stamp: meshSpecUrl('thrift') in packages/loaders/thrift.
extend schema
@link(
url: "https://specs.graphql-mesh.dev/thrift/v0.1"
import: ["@thrift__rpc"]
)
- Pair with @transport from core/v0.1. JSON Thrift uses Connectors @connect instead.
2Schema additions
2.1ThriftMessageType
enum ThriftMessageType {
CALL
ONEWAY
}3Directives
3.1@thrift__rpc
directive @thrift__rpc(
subgraph: String
service: String
function: String!
args: String
selection: String!
throws: String
messageType: ThriftMessageType = CALL
entity: Boolean
) repeatable on FIELD_DEFINITION