ilusm.dev

gql

GraphQL schema, resolvers, execution engine.

Load with: use gql

Quick example

use gql

result = gqlsc("value", "value", "value", "value")
prn(result)

Functions

Schema definition

gqlsc(types, q, m, s)

Performs the operation. Takes types, q, m, s.

gqlob(name, fields)

Performs the operation. Takes name, fields.

gqlin(name, fields)

Initialises. Takes name, fields.

gqlen(name, vals)

Encodes. Takes name, vals.

gqlif(name, fields)

Performs the operation. Takes name, fields.

gqlun(name, types)

Performs the operation. Takes name, types.

gqlsc1(name, cb)

Performs the operation. Takes name, cb.

Field definition

gqlfl(name, ty, args, cb, desc)

Performs the operation. Takes name, ty, args, cb, desc.

gqlar(name, ty, df, desc)

Performs the operation. Takes name, ty, df, desc.

gqlnn(ty)

Performs the operation. Takes ty.

gqlli(ty)

Performs the operation. Takes ty.

Built-in scalars

gqlst()

Sets a value or starts a process.

gqli()

Performs the operation.

gqlf()

Performs the operation.

gqlbl()

Performs the operation.

gqlid()

Performs the operation.

Built-in directives

gqlin1()

Performs the operation.

gqlsk()

Performs the operation.

Query execution

gqlex(sch, q, vars, ctx)

Executes. Takes sch, q, vars, ctx.

gqlpa(query_str)

Parses. Takes query_str.

gqlva(sch, doc)

Performs the operation. Takes sch, doc.

gqlex1(sch, doc, vars, ctx)

Performs the operation. Takes sch, doc, vars, ctx.

gqlex2(sel, parent_type, parent_val, vars, ctx, p)

Performs the operation. Takes sel, parent_type, parent_val, vars, ctx, p.

gqlex3(sel, parent_type, parent_val, vars, ctx, p)

Performs the operation. Takes sel, parent_type, parent_val, vars, ctx, p.

gqlfi(type_def, nm)

Performs the operation. Takes type_def, nm.

gqlco(sel, field_args, vars)

Connects. Takes sel, field_args, vars.

gqlco1(vl, type_def)

Performs the operation. Takes vl, type_def.

gqlco2(type_def, raw, ctx, p)

Performs the operation. Takes type_def, raw, ctx, p.

Server

gqlsr(sch, opts)

Performs the operation. Takes sch, opts.

SDL generation

gqlsd(sch)

Performs the operation. Takes sch.

gqlob1(obj)

Performs the operation. Takes obj.

gqlty(ty)

Performs the operation. Takes ty.

gqlgq()

Performs the operation.

Subscriptions (WebSocket)

gqlsu(sch, ws)

Performs the operation. Takes sch, ws.

Client

gqlcl(ep, opts)

Closes or clears. Takes ep, opts.

gqlqr(cli, query_str, vars)

Performs the operation. Takes cli, query_str, vars.

Notes

  • GraphQL schema definition, query parsing, and execution.