Click to see the live api: Podcast-Graphql-API
A simple Graphql API that allows you to query and mutate Podcast details. Built using Node.js and the Apollo-Server library, deployed it on Heroku.
ExpressJS --- MongoDB Atlas --- Mongoose --- Apollo-Server
schema {
query: Query
mutation: Mutation
}
type Podcast {
id: ID!
name: String!
url: String!
}
input CreatePodcastInput {
name: String!
url: String!
}
input UpdatePodcastInput {
name: String
url: String
}
input DeletePodcastInput {
id: ID!
}
type DeletePayload{
id: ID!
}
type Query {
podcasts: [Podcast]
}
type Mutation {
createPodcast(input: CreatePodcastInput!): Podcast!
updatePodcast(id: ID!, input: UpdatePodcastInput!): Podcast!
deletePodcast(id: ID!): DeletePayload!
}
Ibironke Marvellous