troubleshooting

Is there any document about how to add RisingWave in Hasura?

Hi there, you mentioned several GraphQL engines in your article https://blog.det.life/query-real-time-data-with-graphql-and-streaming-database-78bba4d08c97, among them there is Hasura. Is there any document about how to add RisingWave in Hasura?

be

bestmike007

Asked on Mar 20, 2024

  • RisingWave is not yet supported in Hasura, but you can integrate RisingWave with cube.js, which can serve as a GraphQL engine.
  • To add RisingWave as a Postgres database in cube.js, follow the steps below:
// Example code snippet to add RisingWave as a Postgres database in cube.js
const cubejs = require('@cubejs-client/core');
const PostgresDriver = require('@cubejs-backend-postgres');

const cubejsApi = cubejs('YOUR-CUBEJS-API-TOKEN', {
  driverFactory: () => new PostgresDriver({
    host: 'YOUR-RISINGWAVE-HOST',
    database: 'YOUR-RISINGWAVE-DATABASE',
    user: 'YOUR-RISINGWAVE-USER',
    password: 'YOUR-RISINGWAVE-PASSWORD',
  }),
});
Mar 20, 2024Edited by