July 2018 Summaries
2 posts from Apollo
Filter
Month:
Year:
Post Summaries
Back to Blog
Apollo Server 2 is a major release of the GraphQL server that aims to improve the developer experience by making it easy and straightforward for product engineers to stand up a GraphQL API with minimal boilerplate and configuration. The new version includes features such as automatic persisted queries, CDN integration, integrated metrics reporting, standard error handling, and a structured approach for fetching data from existing backends like REST APIs. It also provides a full-featured GraphQL layer in JavaScript with the latest innovations and techniques, all wired up with the machinery and tooling that makes it a complete solution. The release is an easy transition for teams using Apollo Server 1.x or express-graphql, and many companies are already running Apollo Server 2 in production.
Jul 19, 2018
1,156 words in the original blog post.
The Apollo Server 2.0 has been updated with a feature that allows file uploads in GraphQL, enabling developers to upload files as part of their mutations. This feature is based on the GraphQL multipart form requests specification and follows the client-server workflow for uploading files. The server returns an upload promise that resolves an object containing information about the uploaded file, such as its filename, mimetype, encoding, and stream. To use this feature, developers need to install the `apollo-upload-client` package and set up a schema with the `Upload` type. They can then send multipart requests in their mutations, which will be handled by the server-side resolver function. The client can validate the file before sending it to the server and handle multiple files or blobs using different approaches. A full-stack example is available on GitHub for developers to try out and learn more about this feature.
Jul 03, 2018
1,063 words in the original blog post.