Link class

DocumentNode-based GraphQL execution interface

Constructors

Create a Link
const
Link.concat(Link first, Link second)
Create a Link by chaining two links
factory
Link.from(List<Link> links)
Create a Link by chaining multiple links
factory
Link.function(LinkFunction function)
Create a Link from a LinkFunction
factory
Link.route(LinkRouter route)
Creates a Link which routes Request to whichever link is returned from the route function
factory
Link.split(bool test(Request request), Link left, [Link right = const _PassthroughLink()])
Create a Link which routes to the left link if test returns true. Otherwise it routes to the right link, which defaults to passthrough.
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

concat(Link next) Link
Adds next after this link
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
request(Request request, [NextLink forward]) Stream<Response>
A function called when a request reaches this Link
route(LinkRouter route) Link
Route requests after this link
split(bool test(Request request), Link left, [Link right = const _PassthroughLink()]) Link
Split requests after this link
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited