Define Router

info
  • A procedure can be viewed as the equivalent of a REST-endpoint.
  • Defining router is the same for queries, mutations, and subscription with the exception that subscriptions need to return a -instance.

Method chaining

To add multiple endpoints, you must chain the calls