
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
@boltline/apollo-upload-server
Advanced tools
Enhances Apollo GraphQL Server for intuitive file uploads via GraphQL mutations.
Enhances Apollo for intuitive file uploads via GraphQL queries or mutations. Use with a GraphQL multipart request spec client implementation such as apollo-upload-client.
To install apollo-upload-server and graphql from npm run:
npm install apollo-upload-server graphql
Add the middleware just before graphql-server.
maxFieldSize (integer): Max allowed non-file multipart form field size in bytes; enough for your queries (default: 1 MB).maxFileSize (integer): Max allowed file size in bytes (default: Infinity).maxFiles (integer): Max allowed number of files (default: Infinity).errorHandler (function): This function is attached to the error event of each file stream. (default: () => {})).import { apolloUploadKoa } from 'apollo-upload-server'
// …
router.post(
'/graphql',
koaBody(),
apolloUploadKoa(/* Options */),
graphqlKoa(/* … */)
)
import { apolloUploadExpress } from 'apollo-upload-server'
// …
app.use(
'/graphql',
bodyParser.json(),
apolloUploadExpress(/* Options */),
graphqlExpress(/* … */)
)
Middleware wraps the async function processRequest which accepts a Node.js request and an optional options object as arguments. It returns a promise that resolves an object of the shape:
type Response = {
// operations for a GraphQL server to consume (usually as the request body)
body: *,
// promise which will resolve once the request has been fully consumed
finished: Promise<typeof undefined>
}
. Import it to create custom middleware:
import { processRequest } from 'apollo-upload-server'
Upload scalarA file upload promise that resolves an object containing:
streamfilenamemimetypeencodingIt must be added to your types and resolvers:
import { makeExecutableSchema } from 'graphql-tools'
import { GraphQLUpload } from 'apollo-upload-server'
const schema = makeExecutableSchema({
typeDefs: `scalar Upload`,
resolvers: { Upload: GraphQLUpload }
})
Files uploaded via a GraphQL multipart request appear as Upload scalars in resolver arguments. The upload streams can be used to store the files in the local filesystem or in the cloud. See also apollo-upload-client usage and the example API and client.
FAQs
Enhances Apollo GraphQL Server for intuitive file uploads via GraphQL mutations.
The npm package @boltline/apollo-upload-server receives a total of 1 weekly downloads. As such, @boltline/apollo-upload-server popularity was classified as not popular.
We found that @boltline/apollo-upload-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.