Created
May 22, 2019 01:49
-
-
Save BerndWessels/ff73973d1c8379f096a399297b4ff36a to your computer and use it in GitHub Desktop.
BFF pulumi schema
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 characters
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