webql/introspection

Copy Markdown

Types

Input

pub type Input {
  Input(name: String, port: String)
}
Input(name: String, port: String)

Operation

pub type Operation {
  Operation(
    name: String,
    inputs: List(Input),
    outputs: List(Output),
  )
}
Operation(
  name: String,
  inputs: List(Input),
  outputs: List(Output),
)

Output

pub type Output {
  Output(name: String, port: String)
}
Output(name: String, port: String)

Schema

pub type Schema {
  Schema(operations: List(Operation), ports: List(String))
}
Schema(operations: List(Operation), ports: List(String))

Values

introspect

pub fn introspect(schema: schema.Schema(task)) -> Schema

Builds the public schema exposed by a runtime schema.