57dcc9d329
This command changed in pnpm [6.32.13](https://github.com/pnpm/pnpm/releases/tag/v6.32.13) and [7.1.1](https://github.com/pnpm/pnpm/releases/tag/v7.1.1) so lets update it since its been a few weeks and we can expect pnpm users to update more regularly than npm users. - Fixes https://github.com/vercel/next.js/pull/37240 - Fixes https://github.com/vercel/next.js/pull/37045 - Fixes https://github.com/vercel/next.js/pull/37032 - Fixes https://github.com/vercel/next.js/pull/36602 - Fixes https://github.com/vercel/next.js/pull/36496 |
||
---|---|---|
.. | ||
lib | ||
pages | ||
.env | ||
.gitignore | ||
package.json | ||
README.md |
Realm-Web SDK Example
This example uses Realm-Web SDK to query a realm graphql endpoint using swr.
This example relies on MongoDB Realm for its GraphQL backend.
Deploy your own
Deploy the example using Vercel:
How to use
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-realm-web with-realm-web-app
# or
yarn create next-app --example with-realm-web with-realm-web-app
# or
pnpm create next-app --example with-realm-web with-realm-web-app
Deploy it to the cloud with Vercel (Documentation).
Configuration
To set up your app:
- Link a cluster that includes the Atlas sample data sets
- Configure permissions for the
sample_mflix.movies
collection. For this demo, you can assign ready only permissions for all authenticated users. - Generate a collection schema for the
sample_mflix.movies
collection. Add a root-level "title" field to the schema with the value set to "movie". - Enable anonymous authentication
- Once your app is set up, replace the value of NEXT_PUBLIC_REALM_APP_ID in
.env
file with your App ID