Skip to main content
Module

x/graphql_tools/deps.ts>getLocation

[DEPRECATED] 🦕 Useful tools to create and manipulate GraphQL schemas. Deno port of `graphql-tools` library
Latest
function getLocation
import { getLocation } from "https://deno.land/x/graphql_tools@0.0.4-deprecated/deps.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

Returns

SourceLocation