"amplify mock api" showing "NO SCHEMA AVAILABLE"

0
bento on  main [!1] via  v20.7.0 on 🅰 (Japan) took 1m16s
❯ java --version
openjdk 16.0.1 2021-04-20
OpenJDK Runtime Environment (build 16.0.1+9-24)
OpenJDK 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)

bento on  main [!1] via  v20.7.0 on 🅰 (Japan)
❯ amplify upgrade
This is the latest Amplify CLI version.

bento on  main [!1] via  v20.7.0 on 🅰 (Japan) took 2s
❯ amplify mock api

⚠️  WARNING: your GraphQL API currently allows public create, read, update, and delete access to all models via an API Key. To configure PRODUCTION-READY authorization rules, review: https://docs.amplify.aws/cli/graphql/authorization-rules

⚠️ WARNING: owners may reassign ownership for the following model(s) and role(s): User: [owner], Order: [owner], OrderProduct: [owner], OrderStatusHistory: [owner]. If this is not intentional, you may want to apply field-level authorization rules to these fields. To read more: https://docs.amplify.aws/cli/graphql/authorization-rules/#per-user--owner-based-data-access.
✅ GraphQL schema compiled successfully.

Edit your schema at /Users/monti/.z/projects/bento/amplify/backend/api/bento/schema.graphql or place .graphql files in a directory at /Users/monti/.z/projects/bento/amplify/backend/api/bento/schema
Running GraphQL codegen
✔ Generated GraphQL operations successfully and saved at src/graphql
✔ Code generated successfully and saved in file src/API.ts
AppSync Mock endpoint is running at http://192.168.68.119:20002

when browsing http://192.168.68.119:20002: no schema available apikey cannot be updated

Bento
已提問 7 個月前檢視次數 91 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南