StandardEdge
public struct StandardEdge<Node> : EdgeProtocol, ConcreteResolvable where Node : ConcreteResolvable, Node : OutputResolvable
Standard Edge
This is the default implementation of an Edge. It has the node and cursor and nothing else.
-
Declaration
Swift
public let node: Node? -
Declaration
Swift
public let cursor: String -
Initializer for an Edge
Declaration
Swift
public init(node: Node?, cursor: String)Parameters
nodeValue the edge is pointing to
cursorCursor for this Value
-
Declaration
Swift
public static var concreteTypeName: String { get } -
Declaration
Swift
public static var additionalArguments: [String : InputResolvable.Type] { get } -
Declaration
Swift
public static func resolve(using context: inout Resolution.Context) throws -> GraphQLOutputType -
Declaration
Swift
public func resolve(source: Any, arguments: [String : Map], context: MutableContext, eventLoop: EventLoopGroup) throws -> Output
View on GitHub
StandardEdge Structure Reference