1 2 3 4 5 6 7 8 9 10 11 12 13 | 1× 1× 1× 5× 5× 5× 1× | const { graphqlScalarTypes } = require('../scalars'); const getIriLocalName = require('../utils/getIriLocalName'); function getGraphqlScalarType(g, iri) { const type = graphqlScalarTypes[getIriLocalName(iri)]; Iif (!type) throw new Error(`getGraphqlScalarType ${iri})`); return type; } module.exports = getGraphqlScalarType; |