Appsync Repo
test('should query getUser correctly', async () => const query = `query getUser(id: "123") id name `; const result = await graphqlRequest(query, process.env.APPSYNC_URL, process.env.API_KEY); expect(result.data.getUser.name).toBe('John Doe'); );
Resolvers are located in /resolvers :
amplify mock api
| Mode | Use Case | |------|----------| | | Authenticated user operations | | API Key | Public, read-only access (expires) | | IAM | Service-to-service calls (EC2, Lambda) | appsync repo