logical.importGraphqlfunctionno test imports itfunction importGraphql(source: string, text: string, url: string | undefined): FoundThe endpoint of a GraphQL schema served at url.
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; // 1logical.importGraphqlfunctionno test imports itfunction importGraphql(source: string, text: string, url: string | undefined): FoundThe endpoint of a GraphQL schema served at url.
importGraphqlfunctionfunction importGraphql(source: string, text: string, url: string | undefined): FoundThe endpoint of a GraphQL schema served at url.