Skip to content

Instantly share code, notes, and snippets.

@duwerq
Last active August 20, 2021 19:41
Show Gist options
  • Save duwerq/2f01b4068ba74e9ffda667d794af2930 to your computer and use it in GitHub Desktop.
Save duwerq/2f01b4068ba74e9ffda667d794af2930 to your computer and use it in GitHub Desktop.
type Query {
findEstablishments(
input: FindEstablishmentsInput!
): SearchableEstablishmentConnection @aws_iam @aws_cognito_user_pools
}
type GPS {
lon: Float
lat: Float
}
input GPSInput {
lon: Float!
lat: Float!
}
input GPSQueryInput {
gps: GPSInput!
radius: Float!
}
input FindEstablishmentsInput {
byGPS: GPSQueryInput
byPlaceID: String
limit: Int
nextToken: String
from: Int
}
type SearchableEstablishmentConnection @aws_iam @aws_cognito_user_pools {
items: [Establishment]
nextToken: String
total: Int
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment