Skip to content

Instantly share code, notes, and snippets.

@armedoctopus
Forked from dabit3/FinalSchema.gql
Created November 5, 2018 21:36
Show Gist options
  • Select an option

  • Save armedoctopus/8dff73d0a89f2f0199ffb97122fbe0a8 to your computer and use it in GitHub Desktop.

Select an option

Save armedoctopus/8dff73d0a89f2f0199ffb97122fbe0a8 to your computer and use it in GitHub Desktop.

Revisions

  1. @dabit3 dabit3 revised this gist Feb 12, 2018. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions FinalSchema.gql
    Original 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
    }
  2. @dabit3 dabit3 revised this gist Feb 11, 2018. 1 changed file with 25 additions and 25 deletions.
    50 changes: 25 additions & 25 deletions FinalSchema.gql
    Original file line number Diff line number Diff line change
    @@ -1,39 +1,39 @@
    type City {
    id: ID!
    name: String!
    country: String!
    locations: [Location]
    id: ID!
    name: String!
    country: String!
    locations: [Location]
    }

    type Location {
    id: ID!
    cityId: ID!
    name: String!
    info: String
    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
    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]
    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"])
    putLocation: Location
    @aws_subscribe(mutations: ["putLocation"])
    putCity: City
    @aws_subscribe(mutations: ["putCity"])
    }
  3. @dabit3 dabit3 created this gist Feb 11, 2018.
    39 changes: 39 additions & 0 deletions FinalSchema.gql
    Original 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"])
    }