Skip to content

Instantly share code, notes, and snippets.

@BerndWessels
Created May 22, 2019 01:49
Show Gist options
  • Save BerndWessels/ff73973d1c8379f096a399297b4ff36a to your computer and use it in GitHub Desktop.
Save BerndWessels/ff73973d1c8379f096a399297b4ff36a to your computer and use it in GitHub Desktop.
BFF pulumi schema
input CreatePetInput {
type: PetType
price: Float!
}
input DeletePetInput {
id: ID!
}
type Mutation {
createPet(input: CreatePetInput!): Pet
updatePet(input: UpdatePetInput!): Pet
deletePet(input: DeletePetInput!): Pet
}
type Pet {
id: ID!
type: PetType
price: Float
}
enum PetType {
dog
cat
fish
bird
gecko
}
type Query {
getPet(id: ID!): Pet
@aws_auth(cognito_groups: ["Bloggers"])
listPets: [Pet]
@aws_auth(cognito_groups: ["Bloggers"])
listPetsByPriceRange(min: Float, max: Float): [Pet]
@aws_auth(cognito_groups: ["Bloggers"])
}
input UpdatePetInput {
id: ID!
type: PetType
price: Float!
}
schema {
query: Query
mutation: Mutation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment