contentful-graphql-vs-rest
examples
contentful-graphql-vs-rest | examples | |
---|---|---|
1 | 2 | |
8 | 637 | |
- | 0.9% | |
0.0 | 6.4 | |
about 3 years ago | 24 days ago | |
JavaScript | JavaScript | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
contentful-graphql-vs-rest
-
Rendering linked assets and entries in the Contentful Rich Text field
Take a look at this example repository on GitHub, which is a demo Next.js application that contains all of the example code in this post, and demonstrates how we can fetch this data and render the Rich Text field linked assets and entries using both the REST API with JavaScript SDK and the GraphQL API.
examples
-
How we use Apollo to manage GraphQL data in our React Typescript application
Did you evaluate mock-service-worker? It's a good solution to mocking API requests. When it executes in the browser it uses a service worker to intercept requests, and when it executes in node (e.g. unit tests) it patches the http.Request methods to effectively do the same. Here's an example for mocking Apollo: https://github.com/mswjs/examples/tree/master/examples/graphql-react-apollo
-
Beginners Thread Easy Questions February 2021
I use https://mswjs.io/, here is also an example project that can become handy: https://github.com/mswjs/examples/tree/master/examples/graphql-react-apollo . Reading this article could also help: https://kentcdodds.com/blog/stop-mocking-fetch
What are some alternatives?
just-api - :boom: Test REST, GraphQL APIs
open-api-mocker - A mock server based in OpenAPI Specification
OpenRecord - Make ORMs great again!
testing-nestjs - A repository to show off to the community methods of testing NestJS including Unit Tests, Integration Tests, E2E Tests, pipes, filters, interceptors, GraphQL, Mongo, TypeORM, and more!
Strapi - π Strapi is the leading open-source headless CMS. Itβs 100% JavaScript/TypeScript, fully customizable and developer-first.
puppeteer-request-mocker - Request mocker for puppeteer
rich-text - Libraries for handling and rendering Rich Text π
anvil-e-signature-api-node-example - An example app used to showcase Anvil Etch E-Signature API using the node-anvil client.
axios-interceptor - It's axios interceptor hook to reduce developer effort for configuring api interceptor.
azure-pipelines-monorepo - Example of a multi-pipeline monorepo with Azure Pipelines