News for hackers. Stuff that matters.
Re:How and why GraphQL will influence the Sourcehut alpha by zwkrt on Thursday June 11, 2020 @01:33PM (#23491202)
For a fun hack-week project I created a graphql server that would automatically create any necessary SQL tables to support a query given to it. So if you made the query

    query {
        user {
            name
            email {
                primary
                secondary
            }
            posts {
                body
                karma
            }
        }
    }
It would create an entire database schema with users, emails, and posts, and the correct indexes and fk relations to support the graphql query. It would also generate mutations for updating the entities in a relational, cascading manner, so deleting a user would also delete their email and posts.
Re:How and why GraphQL will influence the Sourcehut alpha by carapace on Thursday June 11, 2020 @02:25PM (#23491792)
That sound cool! Is it online anywhere? I'd love to look at it.
Re:How and why GraphQL will influence the Sourcehut alpha by ahhsum on Friday June 12, 2020 @11:50AM (#23500426)
Yo, this is legit what hasura does!