Skip to content

Marvel-Ib/Podcast-Graphql-API-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Click to see the live api: Podcast-Graphql-API

Podcast-Graphql-API

About

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.

Tech Stack

ExpressJS --- MongoDB Atlas --- Mongoose --- Apollo-Server

Schema

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!
}

Sample Query and Mutations

query

create

update

App Info

Author

Ibironke Marvellous

Releases

No releases published

Packages

No packages published