Show HN: GraphQL Voyager – Represent Any GraphQL API as an Interactive Graph
1–10 of 31 posts
Re: Show HN: GraphQL Voyager – Represent Any GraphQL API as an Interactive Graph
#2Re: Show HN: GraphQL Voyager – Represent Any GraphQL API as an Interactive Graph
#3A 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
#4This 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
#5Re: Show HN: GraphQL Voyager – Represent Any GraphQL API as an Interactive Graph
#6In 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.
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
#7Are you accepting pull requests?
Re: Show HN: GraphQL Voyager – Represent Any GraphQL API as an Interactive Graph
#8Trying 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
#9In 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.