Libraries and Tools
Announcing the beta release of Sqlmancer – a Node.js library that allows you to translate GraphQL queries into SQL statements. Sqlmancer joins the growing ecosystem of GraphQL-to-SQL tools and supports PostgreSQL, MySQL, MariaDB, and SQLite. Sqlmancer leverages GraphQL directives to map the GraphQL schema to database tables and follows the schema-first approach to GraphQL. Under the hood, it uses the SQL query builder Knex.js and works by generating models from your GraphQL types.
Hasura, a popular GraphQL-to-SQL tool, introduces Remote Joins - a feature that enables fetching data from multiple remote sources in addition to PostgreSQL. As projects with multiple databases and 3rd party APIs become increasingly normal, teams must contend with fragmented data and no single "source of truth". Application developers have a hard time getting access to precise slices of data and a lot of dev cycles are spent in bringing all that data together securely. Follow along to learn how to get started with common use-cases.