NATS

Definitions

The providerId argument, including the default value "default", must correspond to an equivalent property in events.providers.nats entry of the router config.yml.

@edfs_natsPublish

directive @edfs__natsPublish(subject: String!, providerId: String! = "default") on FIELD_DEFINITION

type edfs__PublishResult {
    success: Boolean!
}

@edfs__natsRequest

directive @edfs__natsRequest(subject: String!, providerId: String! = "default") on FIELD_DEFINITION

@edfs__natsSubscribe

directive @edfs__natsSubscribe(subjects: [String!]!, providerId: String! = "default", streamConfiguration: edfs__NatsStreamConfiguration) on FIELD_DEFINITION

input edfs__NatsStreamConfiguration {
    consumerName: String!
    streamName: String!
}

For a full example please refer to:

Last updated