Module: Laika
Laika
is the place where most of the magic happens.
All the operations are routed through its Apollo Link, and Laika can decide what happens to them along the way.
By default every connection is passed through and no additional action is taken.
If you're using createGlobalLaikaLink, an instance of Laika is by default installed as laika
property
on the global object (most likely window
), accessible as window.laika
or simply as laika
.
Key functionality:
If you use
jest
, you can think of laika like thejest
global, where the equivalent ofjest.fn()
islaika.intercept()
The other thing laika is responsible for is logging.
Logging functionality is behind a separate API available under
laika.log
.