-
-
Save armedoctopus/8dff73d0a89f2f0199ffb97122fbe0a8 to your computer and use it in GitHub Desktop.
Revisions
-
dabit3 revised this gist
Feb 12, 2018 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,4 +36,10 @@ type Subscription { @aws_subscribe(mutations: ["putLocation"]) putCity: City @aws_subscribe(mutations: ["putCity"]) } schema { query: Query mutation: Mutation subscription: Subscription } -
dabit3 revised this gist
Feb 11, 2018 . 1 changed file with 25 additions and 25 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,39 +1,39 @@ type City { id: ID! name: String! country: String! locations: [Location] } type Location { id: ID! cityId: ID! name: String! info: String } type Mutation { putCity(id: ID!, name: String!, country: String!): City deleteCity(id: ID!): City putLocation( id: ID!, cityId: ID!, name: String!, info: String ): Location deleteLocation(id: ID!): Location } type Query { getCity(id: ID!): City allCity(count: Int, nextToken: String): [City] getLocation(id: ID!): Location allLocation(count: Int, nextToken: String): [Location] } type Subscription { putLocation: Location @aws_subscribe(mutations: ["putLocation"]) putCity: City @aws_subscribe(mutations: ["putCity"]) } -
dabit3 created this gist
Feb 11, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,39 @@ type City { id: ID! name: String! country: String! locations: [Location] } type Location { id: ID! cityId: ID! name: String! info: String } type Mutation { putCity(id: ID!, name: String!, country: String!): City deleteCity(id: ID!): City putLocation( id: ID!, cityId: ID!, name: String!, info: String ): Location deleteLocation(id: ID!): Location } type Query { getCity(id: ID!): City allCity(count: Int, nextToken: String): [City] getLocation(id: ID!): Location allLocation(count: Int, nextToken: String): [Location] } type Subscription { putLocation: Location @aws_subscribe(mutations: ["putLocation"]) putCity: City @aws_subscribe(mutations: ["putCity"]) }