Skip to main content
Module

x/graphql_deno/mod.ts>getLocation

GraphQL-JS ported to Deno
Latest
function getLocation
import { getLocation } from "https://deno.land/x/graphql_deno@v15.0.0/mod.ts";

Takes a Source and a UTF-8 character offset, and returns the corresponding line and column as a SourceLocation.

Parameters

source: Source
position: number