INNER CODE UNIT · JavaScript

getNestedType

Brbb/graphql-rover · js/utils.js:134

function getNestedType(type){

    if(type.kind === 'LIST' || type.kind === 'NON_NULL'){
        return getNestedType(type.ofType);
    }
    return type.name;
}


// SELECTION UTILS

function reset() {
    d3.selectAll('g.node').style("opacity","1");
    d3.selectAll('g.edgePath').select('path').style("opacity","1");
    d3.selectAll('g.edgePath').select('path').style("stroke","grey");

    g.nodes().forEach(function(name){
        var deactivateNode = g.node(name);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…