Skip to content

Instantly share code, notes, and snippets.

@dabit3
Last active May 17, 2020 03:53
Show Gist options
  • Save dabit3/71663bcb34ad9f689147a95523043b77 to your computer and use it in GitHub Desktop.
Save dabit3/71663bcb34ad9f689147a95523043b77 to your computer and use it in GitHub Desktop.
Single table idea for Amplify GraphQL Transform
type Base @model("BaseDB") {
id: ID!
}
type Post @db("BaseDB") {
...Base
name: String!
}
type Comment @db("BaseDB") {
...Base
message: String!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment