Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npx ampx sandbox - not deploy graphql schema #3110

Open
supun19 opened this issue Jan 9, 2025 · 2 comments
Open

npx ampx sandbox - not deploy graphql schema #3110

supun19 opened this issue Jan 9, 2025 · 2 comments
Labels
Gen 2 pending-community-response Issue is pending a response from the author or community. question Further information is requested

Comments

@supun19
Copy link

supun19 commented Jan 9, 2025

Environment information

System:
  OS: macOS 14.5
  CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
  Memory: 37.44 MB / 8.00 GB
  Shell: /bin/bash
Binaries:
  Node: 18.18.2 - /usr/local/bin/node
  Yarn: 1.22.19 - /usr/local/bin/yarn
  npm: 9.8.1 - /usr/local/bin/npm
  pnpm: 8.10.2 - /usr/local/bin/pnpm
NPM Packages:
  @aws-amplify/auth-construct: 1.3.2
  @aws-amplify/backend: 1.5.1
  @aws-amplify/backend-auth: 1.2.0
  @aws-amplify/backend-cli: 1.3.0
  @aws-amplify/backend-data: 1.1.5
  @aws-amplify/backend-deployer: 1.1.5
  @aws-amplify/backend-function: 1.7.1
  @aws-amplify/backend-output-schemas: 1.4.0
  @aws-amplify/backend-output-storage: 1.1.2
  @aws-amplify/backend-secret: 1.1.4
  @aws-amplify/backend-storage: 1.2.1
  @aws-amplify/cli-core: 1.1.3
  @aws-amplify/client-config: 1.5.0
  @aws-amplify/deployed-backend-client: 1.4.2
  @aws-amplify/form-generator: 1.0.3
  @aws-amplify/model-generator: 1.0.8
  @aws-amplify/platform-core: 1.1.0
  @aws-amplify/plugin-types: 1.3.0
  @aws-amplify/sandbox: 1.2.3
  @aws-amplify/schema-generator: 1.2.4
  aws-amplify: 6.6.6
  aws-cdk: 2.163.1
  aws-cdk-lib: 2.163.1
  typescript: 5.6.3
AWS environment variables:
  AWS_STS_REGIONAL_ENDPOINTS = regional
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
  AWS_SDK_LOAD_CONFIG = 1
No CDK environment variables

Describe the bug

when I apply to changes
amplify/backend/api/hfaceapp/schema.graphql
it does not reflect on schema of appsync on sandbox environment (always todo schema showing)
but when deploy to amply backend I can see the schema has update

Reproduction steps

add graphql model amplify/backend/api/hfaceapp/schema.graphql
run npx ampx sandbox

@ykethan
Copy link
Member

ykethan commented Jan 9, 2025

Hey,👋 thanks for raising this! I'm going to transfer this over to our API repository for better assistance 🙂

@ykethan ykethan transferred this issue from aws-amplify/amplify-backend Jan 9, 2025
@AnilMaktala
Copy link
Member

Hey @supun19, Thank you for bringing this up. In Gen2, models should be added in the amplify/data/resource.ts file instead of the schema.graphql file. Please refer to this section of the documentation for detailed instructions on setting up data.

@AnilMaktala AnilMaktala added question Further information is requested Gen 2 pending-community-response Issue is pending a response from the author or community. and removed pending-triage labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gen 2 pending-community-response Issue is pending a response from the author or community. question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants