title: GraphQL query over stardog triplestore but not able to create type system for result
body: <p>I am trying to query stardog server using GraphQL below is the code. </p>
  
  <pre><code>function getResult() {
    return {
      type: new GraphQLList(GraphQLString),
      description: "URI to get data on the people this person follows",
      resolve: (obj) =&gt; {
          console.log(obj);
        return obj;
      }
    };
  }
  
  let result = new GraphQLObjectType({
        name: "c",
        description: "Basic information on a GitHub user",
        fields: () =&gt; ({
            "c": getResult()
       })
  });
  
  
  const query = new GraphQLObjectType({
        name: "Query",
        description: "First GraphQL for Sparql Endpoint!",
        fields: () =&gt; ({
          Noun: {
            type: result,
            description: "Noun data from ",
            args: {
              noun_value: {
                type: new GraphQLNonNull(GraphQLString),
                description: "Noun returns the subclass nouns",
              },
            },
            resolve: (_,{noun_value}) =&gt; {
                var conn = new stardog.Connection();
  
                conn.setEndpoint("xxxxxx");
                conn.setCredentials("xxxx", "xxxx");
            return new Promise((resolve, reject) =&gt; {
                      conn.query({
                        database: "xxxxxx",
                        query: `select ?c  where {?s rdfs:label '${noun_value}'. ?c rdfs:subClassOf ?s}`,  
                        limit: 10,
                        offset: 0
                      },
                      function (data) {
                          if (data.results.bindings) {
                            return resolve(data.results.bindings);
                          } else {
                            return reject('Null found for data.results.bindings');
                          }
                        });
                    })
                }
            },
          })
        });
  
  const schema = new GraphQLSchema({
    query
  });
  
  export default schema;
  </code></pre>
  
  <p>I am not able to get the resolved result for the query on <code>GraphiQL</code> UI while the <code>console.log(obj)</code>; inside <code>getResult</code> Function prints the result as follows:-</p>
  
  <pre><code>[ { c: { type: 'uri', value: 'spec.edmcouncil.org/fibo/FND/Arrangements/ClassificationSchemes/…; } }, 
  { c: { type: 'uri', value: 'spec.edmcouncil.org/fibo/FND/Arrangements/Quantities/…; } }]
  </code></pre>
  
  <p>but in GraphiQL UI the result shows like it doesn't come the same way</p>