Comments (5)
This is a great question, and I don't know yet. Apollo is working on a brand new transport layer, apollo-fetcher
.
We will adapt here to whatever best practices emerge. The only reason we would deprecate is if Apollo or GraphQL itself offers a native way to move files around (without using Base64 encode – that works now).
Anyone able to shed some light?
from apollo-upload-client.
I don't have any plans to support websockets, and together with the Apollo team all focus is on standardising multipart GraphQL requests.
If anyone has any cool ideas about websockets, feel free to necro this issue.
from apollo-upload-client.
@jaydenseric hello. I wanted to use only websocket as transport for my apps, but found that multipart uploads isn't possible via websocket, as I understand. Or something changed now, in 2019?
from apollo-upload-client.
@georgyfarniev sorry I don't have much to offer as I haven't really researched uploading files over websockets. If you figured out a way I don't think it would have much to do with the GraphQL multipart request spec anyway, as that is for HTTP multipart POST requests.
from apollo-upload-client.
@jaydenseric ok, thank you. I will probably end up with both transports or create separate rest api for managing file uploads.
from apollo-upload-client.
Related Issues (20)
- Module not found - after updating to 18.0.1 HOT 2
- Problem with Typescript HOT 2
- Document required TypeScript libs HOT 1
- How do you use ReactNativeFile in the latest version HOT 3
- Error with Vite HOT 1
- Failed to resolve entry for package "apollo-upload-client". HOT 2
- Support for @defer directive?
- Version 18 doesn't work with React Native HOT 2
- Module not found HOT 2
- Broken compatibility with HotChocolate 13.2 -> HOT 1
- Why js instead of ts? HOT 3
- Version 18 incompatible with Next.js HOT 3
- Support with @habx/apollo-multi-endpoint-link HOT 2
- Query on Compatibility with @apollo/client 3.9.0 and apollo-upload-client HOT 1
- Pending requests issue HOT 2
- importing the library in react js project HOT 1
- "Reached maximum amount of queued data" in Safari HOT 2
- Must provide query string HOT 3
- Can this lib provider `typings` HOT 4
- ReactNativeFile HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-upload-client.