aws-mobile-appsync-sdk-js
aws-mobile-appsync-sdk-js copied to clipboard
Export NormalisedCacheObject
Do you want to request a feature or report a bug? Feature
What is the current behavior?
aws-appsync does not export NormalizedCacheObject, however this is required to define an instance of the AWSAppSyncClient.
As a result I need to install apollo-cache-inmemory as a peer dependency for this type definition (with all of the resulting dependency management complications).
What is the expected behavior?
Please export NormalizedCacheObject from the aws-appsync package, so the package type definitions are all self-contained.
Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions?
"aws-sdk": "^2.564.0"
Same applies to MutationOptions and QueryOptions...
import AWSAppSyncClient, { AWSAppSyncClientOptions, AUTH_TYPE } from 'aws-appsync';
import { NormalizedCacheObject } from 'apollo-cache-inmemory';
import { MutationOptions, QueryOptions } from 'apollo-client'
package.json (exert)
"dependencies": {
"aws-appsync": "^2.0.2"
},
"devDependencies": {
"apollo-cache-inmemory": "1.3.12",
"apollo-client": "2.4.6"
},
Hi, following up on this if any update on this (as the fix is simpler, only to export the objects but I might be wrong)
Following up on the issue as it should be a simple export change which is very obvious