The Event-Driven Graph (or EDG) is an “abstract” subgraph, so it must not define any resolvers. EDGs are also subject to special compositional rules.
Root type | Directive | Response type |
---|---|---|
Query | @edfs__natsRequest | A non-nullable entity object |
Mutation | @edfs__natsPublish | edfs__PublishResult! |
@edfs__kafkaPublish | edfs__PublishResult! | |
Subscription | @edfs__natsSubscribe | A non-nullable entity object |
@edfs__kafkaSubscribe | A non-nullable entity object |
edfs__NatsStreamConfiguration
input object must always be defined to satisfy the @edfs__natsSubscribe
directive:
edfs__PublishResult!
from a EDG Mutation root field will result in a compositional error.
args
refers to the field arguments, which has its own period delimiter, followed by a name of a field argument. This argument name must match exactly to a corresponding field argument name.
@external