IF Commons GitHub

logical/graphql

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-estate-endpoints-readers FR-002

GraphQL: a schema (the language of types, or the JSON of an introspection) says what is served and never where, so the address is given; the endpoint is api: graphql with the authentication left unknown, because a schema does not say it. A text that is neither a schema nor an introspection is a problem.

import { importGraphql } from "./graphql.ts";
importGraphql("schema.graphql", "type Query { ok: Boolean }", "https://api.example.test/graphql").assets.length; // 1

Source: commons/estate-endpoints/src/logical/graphql.ts

1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

logical.importGraphqlfunctionno test imports it
function importGraphql(source: string, text: string, url: string | undefined): Found

The endpoint of a GraphQL schema served at url.

importGraphqlfunction
function importGraphql(source: string, text: string, url: string | undefined): Found

The endpoint of a GraphQL schema served at url.

Imported by 8 tests of the run (8 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.