bun add postgraphile
Issues: Bun resolve to incorect graphql
package oven-sh/bun#3857
- save file
postgraphile+4.13.0.patch
topatches/postgraphile+4.13.0.patch
bun add patch-package
bunx patch-package
Update code
app
// use postgraphile
.use(postgraphilePlugin({
prefix: '/api',
dbUrl: 'postgresql://postgres:password@localhost:5432/somedb?schema=public'
}))
.listen(process.env.PORT || 3000)
- GraphQL: https://localhost:3000/api/graphql
- GraphiQL: https://localhost:3000/api/graphiql
Thank you for this @olragon! Have you considered publishing this as a community plugin?
EDIT: I did see your question asked here: https://discord.com/channels/1044804142461362206/1044807567022493766/1134407859736678430