GraphQL Placeholder
GraphQL Placeholder is great for frontend developers building GraphQL powered apps or for quick testing a GraphQL API. If you’re learning Apollo Client, GraphQL Placeholder gives you the following Types you can query;
About: My name is Rayhan and I'm a full stack web developer, Nodejs wizard. With my 6+ years of freelancing career, I learned a lot of modern webs developing tools and frameworks like expressjs, reactjs..
https://graphqlplaceholder.com/
GraphQL Placeholder is great for frontend developers building GraphQL powered apps or for quick testing a GraphQL API. If you’re learning Apollo Client, GraphQL Placeholder gives you the following Types you can query;
// # -------------- All Queries -------------- #
type Query {
user(userId: Int!): User!
users: [User!]
post(postId: ID!): Post!
posts: [Post!]
comment(commentId: ID!): Comment!
comments: [Comment!]
}
// # -------------- All Mutations -------------- #
type Mutation {
addPost(data: PostInput!): Post!
updatePost(postId: ID!, data: PostUpdateInput!): Post!
deletePost(postId: ID!): Post!
addComment(data: CommentInput!): Comment!
updateComment(commentId: ID!, data: CommentUpdateInput!): Comment!
deleteComment(commentId: ID!): Comment!
}
You can send requests to https://api.graphqlplaceholder.com/ via a library like graphql-request.
The application is completely available on GitHub. You can submit a PR for any additional queries/mutations that are useful.
I hope this project helps other’s getting started with Apollo + GraphQL and removes the worry of building an actual GraphQL server.
GraphQL Placeholder is great for frontend developers building GraphQL powered apps or for quick testing a GraphQL API. If you’re learning Apollo Client, GraphQL Placeholder gives you the following Types you can query;