Live data from Hacker News

Show HN: GraphQL Voyager – Represent Any GraphQL API as an Interactive Graph

github.com

1–10 of 31 posts

Re: Show HN: GraphQL Voyager – Represent Any GraphQL API as an Interactive Graph

#3
This is really excellent! I've been hoping for a while now that someone would build something like this :-)

A direction that'd be interesting to explore is a guided query writer. Perhaps have a floating query input box and if you click on a type, it adds a query. Then you could edit the query and as you add/remove fields & connections, it highlights the equivalent areas of the visualization.

Re: Show HN: GraphQL Voyager – Represent Any GraphQL API as an Interactive Graph

#4

This is really excellent! I've been hoping for a while now that someone would build something like this :-) A direction that'd be interesting to explore is a guided query writer. Perhaps have a floating query input box and if you click on a type, it adds a query. Then you could edit the query and as you add/remove fields & connections, it highlights the equivalent areas of the visualization.

It was our initial goal but we decided to proceed with smaller steps and that's why we've released this MVP.

Re: Show HN: GraphQL Voyager – Represent Any GraphQL API as an Interactive Graph

#6

In the README it says mit license but I can't see a LICENSE.txt file, does that matter? It's a really cool project that makes me want to try GraphQL btw.

does that matter?

It depends on how likely you are to be sued for using this.

On the one hand, it's clear that the intent is to MIT license the software.

On the other hand, the MIT license requires specifying the year of the copyright along with the copyright holder (in addition to the actual text itself). As of right now, it's not clear who the copyright holder even is.

IANAL, but I would suggest that if you are at the point where you wish to modify and distribute the code, you could politely ask the copyright license holder to add a proper license block.

Re: Show HN: GraphQL Voyager – Represent Any GraphQL API as an Interactive Graph

#8
Great project. I'm still deciding how much like gql itself.

Trying scaffold.io and found the simplest code to get the first customer is

const myQuery = gql`

{

viewer {

  allCustomers(first: 1) {
                    
   edges { node { firstName } }
               
  }
         
 }
}

client.query({ query: myQuery })

.then((graphQLResult) => {

console.log('success: ', graphQLResult.data.viewer.allCustomers.edges[0].node.firstName)

})

All this verbosity has a reason (for example to support paging), but the elegance hasn't hit me yet.

Re: Show HN: GraphQL Voyager – Represent Any GraphQL API as an Interactive Graph

#9

In the README it says mit license but I can't see a LICENSE.txt file, does that matter? It's a really cool project that makes me want to try GraphQL btw.

Good catch! Just added the LICENSE file. https://github.com/APIs-guru/graphql-voyager/blob/master/LIC...

Re: Show HN: GraphQL Voyager – Represent Any GraphQL API as an Interactive Graph

#10
Glad to see our public transport schema as one of the demo options. However, it's not just Helsinki Region or Finland anymore: you can set up your own endpoints by loading OpenStreetMap and GTFS data into OpenTripPlanner. More info: https://digitransit.fi/en/developers
Post reply on HN