1.0.0-rc.4
🌟 Help us spread the word about Prisma-AppSync by starring the repo.
Highlights
⚡️ Local dev server is now using vite-node
instead of ts-node-dev
Due to some incompatibilities between ts-node-dev
and some of the newest changes, Vite is now used as the underlying Node runtime for the Prisma-AppSync local dev server.
To migrate an existing project using the local dev server, you'll need to edit the dev
script inside your package.json
and replace the following part:
shell
npx ts-node-dev --rs --transpile-only --watch './*.ts' -- ./server.ts
with:
shell
npx vite-node ./server.ts --watch --
⚡️ Local dev server upgraded to GraphQL Yoga v3, with the ability to use custom options
When using Prisma-AppSync local dev server, it is now possible to pass custom options from the server.ts
file.
ts
createServer({
yogaServerOptions: {
cors: {
origin: 'http://localhost:4000',
credentials: true,
allowedHeaders: ['X-Custom-Header'],
methods: ['POST']
}
/* ...other args */
}
})
For the full list of supported options, please refer to https://the-guild.dev/graphql/yoga-server/docs and the createYoga
method.
Fixes and improvements
- Auto-populated fields (autoincrement, uuid, updatedAt, …) are now visible and directly editable from the GraphQL schema (Issue #70)
- Fixed issue with lists (arrays) in Prisma Schema not being properly cast into the GraphQL Schema (PR #78)
- Added
cuid
as part of the auto-populated fields (PR #72) - Initialize
prismaArgs
with empty select (PR #69) - Added an optional generic type for QueryParams (PR #74)
- Fixed issue with CDK boilerplate policy statements (Issue #64)
- Fixed docs using the wrong syntax for fine-grained access control examples (Issue #79)
- CDK boilerplate Lambda function upgraded to
NODEJS_16_X
- CDK boilerplate
warmUp(boolean)
parameter becomesuseWarmUp(number)
, allowing to specify the number of warm-up functions to use (default0
)
Credits
Sylvain 🧙♂️ 💻 🤔 📖 | Ciprian Caba 💻 🤔 | Cameron Jenkinson 💻 | Bell 💻 |
Github sponsors
Enjoy using Prisma-AppSync? Please consider 💛 Github sponsors.