-
Notifications
You must be signed in to change notification settings - Fork 199
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
Model related GraphQL Transform with Key, Connection, and Auth Directives #337
Comments
Model DirectiveLearn more at https://aws-amplify.github.io/docs/cli-toolchain/graphql#model
Enum support/anotherType inside model type
Date support AWSTimestamp Follow upadd integration test #314 |
Key Directivehttps://aws-amplify.github.io/docs/cli-toolchain/graphql#key Add a custom hashKey for the data to be persisted, such as "email" instead of
This is currently not supported due to DataStore needs an Ideas around doing customer model gen based on developer using API category or DataStore. Add customer hashKey and second field is sort key
this is similar to just having one customer hash key. the query requires both the hashkey and sort key, and mutations are not affected A named key directive with hashKey, and two fields, making up the composite key
A named key directive, which provides a secondary index, and queryField to allow query operation
The queries look like:
corresponding API call would look like:
if we can modelgen at least the class, it would be useful to be able to pass it in as the Findings
|
Connection Directive
Has one
what is the flow?
Has One with use of
related issue to run through:
TODO:
one to many connections
data access exampleSchema from |
Auth Directive
Related Issue to run through: #257 |
Version Directiverelated issue: |
A graphQL schema is provided by the customer and
amplify codegen models
will generate the Model classes used by DataStore and API.When provisioning the API backend, the schema with object types annotated with
model
directive will a backend with a set of APIs to apply CRUD operations. More details here: https://aws-amplify.github.io/docs/cli-toolchain/graphql#generatesThis issue is to test out the different use cases provided by the documentation here https://aws-amplify.github.io/docs/cli-toolchain/graphql#graphql-transform
The focus will be on Model, Key, Connections, and Auth
After doing this excercise, we conclude with
The text was updated successfully, but these errors were encountered: