Mesh Specs https://specs.graphql-mesh.dev

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.

Example @link usage
extend schema
  @link(
    url: "https://specs.graphql-mesh.dev/thrift/v0.1"
    import: ["@thrift__rpc"]
  )

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

3.1.1subgraph: String

3.1.2service: String

3.1.3function: String!

3.1.4args: String

3.1.5selection: String!

3.1.6throws: String

3.1.7messageType: ThriftMessageType = CALL

3.1.8entity: Boolean